Move companion secret key to .env

This commit is contained in:
Minecon724 2025-04-12 10:58:57 +02:00
commit 66057ae9ae
Signed by: Minecon724
GPG key ID: A02E6E67AB961189
3 changed files with 6 additions and 1 deletions

3
.env
View file

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

View file

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

View file

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