# DEV gateway (docs/development/ENVIRONMENTS.md §3): Mailpit behind HTTP basic auth on # the LAN address, port 54325. The Supabase CLI publishes Mailpit itself on # 0.0.0.0:54324 with no authentication; that raw port is closed to the LAN by the host # firewall rule of §3.2, so this gateway is the only way to read DEV mails from another # device. The upstream is resolved through Docker's DNS on every request (variable + # resolver), so a restarted stack is followed without restarting the gateway. resolver 127.0.0.11 valid=10s ipv6=off; map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 54325; server_name _; auth_basic "Faunosteo DEV mail"; auth_basic_user_file /etc/nginx/htpasswd; location / { set $mailpit http://supabase_inbucket_faunosteo:8025; proxy_pass $mailpit; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_read_timeout 3600s; } }