mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add option to set HMAC key
This commit is contained in:
parent
e49dadbb65
commit
87d520bb02
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue