fix: Update to use https and a logging
All checks were successful
Build Docker / Build Docker (push) Successful in 22s

This commit is contained in:
Nathan Woodburn 2023-12-15 14:34:37 +11:00
parent ecf44b8520
commit a0d395ae4e
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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;
}
}