Move companion secret key to .env
This commit is contained in:
parent
b8a5ade273
commit
66057ae9ae
3 changed files with 6 additions and 1 deletions
3
.env
3
.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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Reference in a new issue