diff --git a/nginx.conf b/nginx.conf index dfcb73e..bec949a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,13 +8,17 @@ upstream loadbalancer { server { listen 80; - server_name your_domain.com; + # Catch all servers + server_name _; location / { - proxy_pass http://loadbalancer; + proxy_pass https://loadbalancer; 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; + + # Show which node served the request in logs + add_header X-Load-Balancer-Node $upstream_addr; } }