Merge pull request #85 from webknjaz/feature/creds-from-env

Enable storing creds via env vars
This commit is contained in:
streetturtle 2019-06-20 16:07:24 -04:00 committed by GitHub
commit 0fb355887e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -7,12 +7,12 @@
local secrets = {
-- Yandex.Translate API key - https://tech.yandex.com/translate/
translate_widget_api_key = 'API_KEY',
translate_widget_api_key = os.getenv('AWW_TRANSLATE_API_KEY') or 'API_KEY',
-- OpenWeatherMap API key - https://openweathermap.org/appid
weather_widget_api_key = 'API_KEY',
weather_widget_city = 'Montreal,ca',
weather_widget_units = 'metric' -- for celsius, or 'imperial' for fahrenheit
weather_widget_api_key = os.getenv('AWW_WEATHER_API_KEY') or 'API_KEY',
weather_widget_city = os.getenv('AWW_WEATHER_CITY') or 'Montreal,ca',
weather_widget_units = os.getenv('AWW_WEATHER_UNITS') or 'metric' -- for celsius, or 'imperial' for fahrenheit
}
return secrets