Invidious is an alternative front-end to YouTube
Add option to set HMAC key
Omar Roth87d520bb0275
diff --git a/src/invidious.cr b/src/invidious.crindex 566686c2..f046b750 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -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_threadschannel_threads = CONFIG.channel_threadsdiff --git a/src/invidious/helpers.cr b/src/invidious/helpers.crindex ef56da1a..3388c023 100644--- a/src/invidious/helpers.cr+++ b/src/invidious/helpers.cr@@ -43,6 +43,7 @@ class Config),dl_api_key: String?,https_only: Bool?,+ hmac_key: String?,})end