implement .env configuration support and restrict web interface to localhost

This commit is contained in:
CPTN Cosmo 2026-04-18 16:36:25 +02:00
parent 6ce356ffed
commit 40c5cbef1c
3 changed files with 11 additions and 4 deletions

View file

@ -5,11 +5,11 @@ services:
build: .
container_name: xivlauncher-remote-otp
ports:
- "8080:8080"
- "127.0.0.1:8080:8080"
volumes:
- ./data:/app/data
environment:
- WEB_PASSWORD=admin
- WEB_PASSWORD=${WEB_PASSWORD:-admin}
# Generate a secure key using: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
- ENCRYPTION_KEY=CHANGE_ME_TO_A_VALID_FERNET_KEY
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-CHANGE_ME_TO_A_VALID_FERNET_KEY}
restart: unless-stopped