server { listen 80; listen 443 ssl; server_name demo.networkwizard.xyz; # SSL config handled by the container image location / { proxy_pass http://app:5000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } # Redirect HTTP to HTTPS (handled automatically by the image after certs are obtained) }