fix: Update to use https and a logging
All checks were successful
Build Docker / Build Docker (push) Successful in 22s
All checks were successful
Build Docker / Build Docker (push) Successful in 22s
This commit is contained in:
parent
ecf44b8520
commit
a0d395ae4e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user