worker_processes 1; # Log to stderr/stdout (container-friendly) error_log /dev/stderr notice; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; # Log to stdout/stderr (container-friendly) access_log /dev/stdout; error_log /dev/stderr notice; sendfile on; keepalive_timeout 65; # Ingress note: keep redirects relative so we stay under HA Ingress. server { listen 8099; # Web terminal (ttyd) location /terminal/ { proxy_pass http://127.0.0.1:7681/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } # Landing page (shown inside HA Ingress) # - Shows the web terminal (if enabled) # - Provides a button to open the Gateway Web UI in a separate tab (not embedded) location = / { default_type text/html; # NOTE: __GATEWAY_PUBLIC_URL__ is configured via add-on option gateway_public_url. # We keep it flexible because the right URL depends on how the user exposes HA/gateway # (Nabu Casa, DuckDNS, LAN, etc.). return 200 '
gateway_public_url in the add-on options.