mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 13:37:24 +00:00
Config: Stop if 'hmac_key' is the default value
This commit is contained in:
parent
f64e311dcd
commit
ba43365acb
@ -209,6 +209,9 @@ class Config
|
|||||||
if config.hmac_key.empty?
|
if config.hmac_key.empty?
|
||||||
puts "Config: 'hmac_key' is required/can't be empty"
|
puts "Config: 'hmac_key' is required/can't be empty"
|
||||||
exit(1)
|
exit(1)
|
||||||
|
elsif config.hmac_key == "CHANGE_ME!!"
|
||||||
|
puts "Config: The value of 'hmac_key' needs to be changed!!"
|
||||||
|
exit(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Build database_url from db.* if it's not set directly
|
# Build database_url from db.* if it's not set directly
|
||||||
|
Loading…
Reference in New Issue
Block a user