Separate dashboard port, first-run password setup and default trusted proxies

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-14 17:21:49 +01:00
1 parent a34ff96490
commit c22d452720
25 files changed
+654 -109

No files matched your search

+6 -8
View File
@@ -3,8 +3,8 @@
# .gitea/workflows/deploy.yml, not pasted into the Compose Manager.
#
# NPM reaches the trap as flypaper:8080 over the external network proxynet (default
# site for unknown hosts, trap paths on the real domains). The dashboard is reached
# from the LAN on the host port: http://192.168.1.14:44307.
# site for unknown hosts, trap paths on the real domains). The dashboard has its own
# port 8081, published only to the LAN: http://192.168.1.14:44307.
#
# `restart: always`, not `unless-stopped`: Unraid stops every container explicitly
# when Docker or the array goes down, and `unless-stopped` treats that as a manual
@@ -18,11 +18,9 @@ services:
container_name: flypaper
restart: always
ports:
- "44307:8080"
- "44307:8081"
environment:
TZ: Europe/Berlin
# The dashboard host. Every other Host header lands in the trap.
Flypaper__Http__KnownHosts__0: 192.168.1.14
# Subnet of proxynet: only NPM may set X-Forwarded-For / X-Real-IP.
Flypaper__Http__TrustedProxies__0: 172.19.0.0/16
# From the repository secret, never in the repo.
@@ -34,9 +32,9 @@ services:
networks:
- proxynet
healthcheck:
# The image has neither curl nor wget; bash's /dev/tcp does the request.
# /health from loopback is exempt from the trap.
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/8080 && printf 'GET /health HTTP/1.0\\r\\nHost: localhost\\r\\n\\r\\n' >&3 && head -n 1 <&3 | grep -q ' 200 '"]
# The image has neither curl nor wget; bash's /dev/tcp does the request
# against the dashboard port.
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/8081 && printf 'GET /health HTTP/1.0\\r\\nHost: localhost\\r\\n\\r\\n' >&3 && head -n 1 <&3 | grep -q ' 200 '"]
interval: 30s
timeout: 5s
start_period: 10s