Add option to set HMAC key

このコミットが含まれているのは:
Omar Roth 2018-07-21 22:35:28 -05:00
コミット 87d520bb02
2個のファイルの変更2行の追加1行の削除

ファイルの表示

@ -25,7 +25,7 @@ require "yaml"
require "./invidious/*"
CONFIG = Config.from_yaml(File.read("config/config.yml"))
HMAC_KEY = Random::Secure.random_bytes(32)
HMAC_KEY = CONFIG.hmac_key || Random::Secure.random_bytes(32)
crawl_threads = CONFIG.crawl_threads
channel_threads = CONFIG.channel_threads

ファイルの表示

@ -43,6 +43,7 @@ class Config
),
dl_api_key: String?,
https_only: Bool?,
hmac_key: String?,
})
end