3 Commits

Author SHA1 Message Date
Gan, Jimmy 1e695011ac Add TRUSTED_PROXIES to docker-compose environment to override config.py default
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 00:30:44 +08:00
Gan, Jimmy 789e4124be Update TRUSTED_PROXIES to include Docker bridge gateway 172.17.0.1
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 00:12:48 +08:00
Gan, Jimmy c27dfbfe35 Merge branch fix-ci-deployment into main 2026-05-27 22:24:18 +08:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ if not TRANSMISSION_USER or not TRANSMISSION_PASS:
# Networking configs
LAN_IP_RANGES = os.environ.get("LAN_IP_RANGES", "192.168.31.0/24").split(",")
TRUSTED_PROXIES = os.environ.get("TRUSTED_PROXIES", "127.0.0.1,::1,172.21.0.1").split(",")
TRUSTED_PROXIES = os.environ.get("TRUSTED_PROXIES", "127.0.0.1,::1,172.21.0.1,172.17.0.1").split(",")
def _parse_ip(ip_str: str):
+1
View File
@@ -44,6 +44,7 @@ services:
- SECRET_KEY=${SECRET_KEY}
- ADMIN_USER=jimmy
- ADMIN_PASSWORD_HASH=${ADMIN_PASSWORD_HASH}
- TRUSTED_PROXIES=127.0.0.1,::1,172.21.0.1,172.17.0.1
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN:-}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID:-}
- TELEGRAM_PROXY=${TELEGRAM_PROXY:-}