summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2019-06-20 16:07:24 -0400
committerGitHub <noreply@github.com>2019-06-20 16:07:24 -0400
commit0fb355887e0e6b6e0faa867f320d1dfd8c5be48d (patch)
treeece667d385475cd6fb3b90efa2c4f871f2a45ca5
parent54924ef0645c8b7b212066670e00a164c280ed2f (diff)
parentd8255e84d7f2c7f9c14d2837ceccf925734e513f (diff)
Merge pull request #85 from webknjaz/feature/creds-from-env
Enable storing creds via env vars
-rw-r--r--secrets.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/secrets.lua b/secrets.lua
index 9e3dace..19f35b8 100644
--- a/secrets.lua
+++ b/secrets.lua
@@ -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