# Nginx configuration when running behind a load balancer that terminates SSL # connections (e.g. AWS ELB) server { listen [::]:80; listen 80; server_name $NOSSL_SERVER_NAME; location / { proxy_pass http://$APP; proxy_http_version 1.1; proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host \$http_host; proxy_set_header X-Forwarded-Proto \$http_x_forwarded_proto; proxy_set_header X-Forwarded-For \$http_x_forwarded_for; proxy_set_header X-Forwarded-Port \$http_x_forwarded_port; proxy_set_header X-Request-Start \$msec; } include $DOKKU_ROOT/$APP/nginx.conf.d/*.conf; }