diff options
Diffstat (limited to 'playbooks/roles/outbound/templates/proxy/nginx/conf.d/bin.conf')
-rw-r--r-- | playbooks/roles/outbound/templates/proxy/nginx/conf.d/bin.conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/bin.conf b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/bin.conf index 3c5682d..db2f957 100644 --- a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/bin.conf +++ b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/bin.conf @@ -3,6 +3,10 @@ server { server_name bin.liz.coffee; client_max_body_size 200M; + real_ip_header X-Forwarded-For; + real_ip_recursive on; + set_real_ip_from {{ docker_network }}; + location / { proxy_pass https://{{ loadbalancer_ip }}; proxy_ssl_verify off; @@ -10,7 +14,6 @@ server { 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; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } |