|
| 1 | +--- |
| 2 | +# nginx_frontend role — TLS frontend for EU server (media.zirgate.com) |
| 3 | +# |
| 4 | +# Responsibilities: |
| 5 | +# - Install nginx + certbot |
| 6 | +# - Obtain Let's Encrypt certificate for nginx_frontend_domain |
| 7 | +# - Proxy Xray XHTTP (nginx_frontend_xhttp_path) → 127.0.0.1:nginx_frontend_xhttp_port |
| 8 | + |
| 9 | +# ── Domain ──────────────────────────────────────────────────────────────────── |
| 10 | +nginx_frontend_domain: "media.zirgate.com" |
| 11 | + |
| 12 | +# ── Certbot ─────────────────────────────────────────────────────────────────── |
| 13 | +nginx_frontend_certbot_email: "" # Set in secrets.yml |
| 14 | + |
| 15 | +# ── nginx listen port ───────────────────────────────────────────────────────── |
| 16 | +# IMPORTANT: Xray VLESS Reality already binds to 443 (TCP). |
| 17 | +# nginx_frontend must listen on a different port (e.g., 8443, 9443). |
| 18 | +# The relay role will proxy to this port over HTTPS with SNI. |
| 19 | +nginx_frontend_listen_port: 8443 # Must NOT conflict with xray_vless_port (443) |
| 20 | + |
| 21 | +# ── Raven-subscribe upstream ────────────────────────────────────────────────── |
| 22 | +nginx_frontend_raven_port: 8080 # Must match raven_subscribe_listen_addr port |
| 23 | + |
| 24 | +# ── Xray XHTTP upstream ─────────────────────────────────────────────────────── |
| 25 | +nginx_frontend_xhttp_port: 2053 # Must match xray_xhttp.port |
| 26 | +nginx_frontend_xhttp_path: "/api/v3/data-sync" # Must match xray_xhttp.xhttpSettings.path |
| 27 | + |
| 28 | +# ── TCP stream relay for Xray VLESS Reality ─────────────────────────────────── |
| 29 | +# Stream proxy: nginx_frontend_reality_port → 127.0.0.1:443 (Xray) |
| 30 | +# Allows clients to reach Reality via media.zirgate.com instead of direct EU IP. |
| 31 | +nginx_frontend_reality_stream_enabled: true |
| 32 | +nginx_frontend_reality_port: 8445 # External TCP port for Reality stream |
0 commit comments