Add hmacKey config field for video signing

This commit is contained in:
Zed
2019-10-24 00:17:38 +02:00
parent a56f217074
commit e91e7bcc1e
6 changed files with 18 additions and 9 deletions

View File

@@ -23,5 +23,6 @@ proc getConfig*(path: string): Config =
cacheDir: cfg.get("Cache", "directory", "/tmp/nitter"),
profileCacheTime: cfg.get("Cache", "profileMinutes", 10),
defaultTheme: cfg.get("Config", "defaultTheme", "Dark")
defaultTheme: cfg.get("Config", "defaultTheme", "Dark"),
hmacKey: cfg.get("Config", "hmacKey", "secretkey")
)