Kaynağa Gözat

Added hmac_key parameter (#484)

Muhammad 1 yıl önce
ebeveyn
işleme
dec1730883

+ 1 - 0
stack/invidious-amd64.yml

@@ -27,6 +27,7 @@ services:
         registration_enabled: ${REGISTRATION_ENABLED}
         login_enabled: ${LOGIN_ENABLED}
         captcha_enabled: ${CAPTCHA_ENABLED}
+        hmac_key: ${HMAC_KEY}
         channel_threads: 1
         feed_threads: 1
         default_user_preferences:

+ 5 - 0
template/apps/invidious.json

@@ -133,6 +133,11 @@
 				}
 			]
 		},
+		{
+			"default": "CHANGE_ME!!!",
+			"label": "HMAC_KEY",
+			"name": "HMAC_KEY"
+		},
 		{
 			"default": "US",
 			"description": "Look in the configuration example (link above) for more codes",

+ 1 - 0
tools/install_invidious.sh

@@ -41,3 +41,4 @@ sudo chmod +x "${BASE_DIR}/$f"
 
 echo "Preparation completed, proceed installation in portainer"
 echo -e "Suggestion for \\e[1mDB_PASSWORD\\e[39m: \\e[33m$(openssl rand -base64 24)\\e[39m"
+echo -e "Suggestion for \\e[1mHMAC_KEY\\e[39m: \\e[33m$(openssl rand -hex 20)\\e[39m"