add hmac_key configured field

This commit is contained in:
Brahim Hadriche 2023-05-30 13:01:25 -04:00
parent 381a0e326d
commit b56e55c852
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -17,6 +17,7 @@ class Invidious::Jobs::StatisticsRefreshJob < Invidious::Jobs::BaseJob
"metadata" => {
"updatedAt" => Time.utc.to_unix,
"lastChannelRefreshedAt" => 0_i64,
"hmacKeyConfigured" => HMAC_KEY_CONFIGURED,
},
}