mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-29 07:58:35 +00:00
add hmac_key configured field
This commit is contained in:
parent
381a0e326d
commit
b56e55c852
@ -58,6 +58,7 @@ end
|
||||
alias IV = Invidious
|
||||
|
||||
CONFIG = Config.load
|
||||
HMAC_KEY_CONFIGURED = CONFIG.hmac_key != nil
|
||||
HMAC_KEY = CONFIG.hmac_key || Random::Secure.hex(32)
|
||||
|
||||
PG_DB = DB.open CONFIG.database_url
|
||||
|
@ -17,6 +17,7 @@ class Invidious::Jobs::StatisticsRefreshJob < Invidious::Jobs::BaseJob
|
||||
"metadata" => {
|
||||
"updatedAt" => Time.utc.to_unix,
|
||||
"lastChannelRefreshedAt" => 0_i64,
|
||||
"hmacKeyConfigured" => HMAC_KEY_CONFIGURED,
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user