From 66057ae9aef2e176978a84b021399aade8a99d14 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 12 Apr 2025 10:58:57 +0200 Subject: [PATCH] Move companion secret key to .env --- .env | 3 +++ config.toml | 2 +- docker-compose.yml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 82315ec..85514af 100644 --- a/.env +++ b/.env @@ -13,3 +13,6 @@ DOMAIN=example.com # Note that you still need to uncomment the lines in docker-compose.yml GLUETUN=false + +# Equal to "invidious_companion_key" in your invidious. At least 16 chars! +COMPANION_SECRET_KEY=1234567890abcdef diff --git a/config.toml b/config.toml index 108aa20..5052387 100644 --- a/config.toml +++ b/config.toml @@ -13,7 +13,7 @@ # port = 8282 # env variable: PORT # host = "127.0.0.1" # env variable: HOST # # secret key needs to be 16 characters long or more -secret_key = "CHANGE_ME" # env variable: SERVER_SECRET_KEY +# secret_key = "CHANGE_ME" # env variable: SERVER_SECRET_KEY # verify_requests = false encrypt_query_params = true diff --git a/docker-compose.yml b/docker-compose.yml index 56033f9..7893c22 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,8 @@ services: - ./config.toml:/app/config/config.toml:ro security_opt: - no-new-privileges:true + environment: + SERVER_SECRET_KEY: "${COMPANION_SECRET_KEY}" # Uncomment if using gluetun # network_mode: "service:gluetun" # depends_on: [gluetun]