add secrets.lua to store api keys for translate shell and weather widget

This commit is contained in:
Pavel Makhov 2019-09-20 20:46:34 -04:00
parent 57e0bbdc60
commit 504a051f08
1 changed files with 17 additions and 0 deletions

17
secrets.lua Normal file
View File

@ -0,0 +1,17 @@
-------------------------------------------------
-- Allows to store client specific settings in one place
--
-- @author Pavel Makhov
-- @copyright 2019 Pavel Makhov
--------------------------------------------
local secrets = {
-- Yandex.Translate API key - https://tech.yandex.com/translate/
translate_widget_api_key = os.getenv('AWW_TRANSLATE_API_KEY') or '<your_key>',
-- OpenWeatherMap API key - https://openweathermap.org/appid
weather_widget_api_key = os.getenv('AWW_WEATHER_API_KEY') or '<your_key>',
}
return secrets