Add edge stack: second ingress path + dual-path DNS failover
Cloudflare's tunnel edge-pool assignment can blackhole the site for whole regions (2026-10-10: tunnel hostnames served from an unreachable anycast range for hours). This adds an independent path and the automation that keeps occupymedia.cc reachable when either path is sick: - nginx edge mirroring the tunnel ingress (app/api/tube/chat/ping), LE wildcard via dns-01, twice-daily renewal - DOCKER-USER firewall: 80/443 restricted to Cloudflare ranges (CF mode) or OPEN for grey-cloud mode via firewall.mode - edge-watcher (60s systemd timer): dynamic public-IP sync, dual-path health checks, DNS failover TUNNEL<->ORIGIN/GREY with hysteresis, gated by EDGE_ENABLED - ping.occupymedia.cc sacrificial probe host for activation - deployment runbook in README.md; credential files shipped as .example
This commit is contained in:
parent
aa5e262f3a
commit
9365b561b2
12 changed files with 438 additions and 0 deletions
16
infra/occupymedia/edge/docker-compose.edge.yml
Normal file
16
infra/occupymedia/edge/docker-compose.edge.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
services:
|
||||
edge:
|
||||
image: nginx:1.27-alpine
|
||||
container_name: occ-edge-1
|
||||
restart: unless-stopped
|
||||
networks: [occ-app_default]
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./certs:/etc/letsencrypt:ro
|
||||
|
||||
networks:
|
||||
occ-app_default:
|
||||
external: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue