summaryrefslogtreecommitdiff
path: root/playbooks/roles/outbound/templates/proxy/nginx/conf.d/idm.conf
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/outbound/templates/proxy/nginx/conf.d/idm.conf')
-rw-r--r--playbooks/roles/outbound/templates/proxy/nginx/conf.d/idm.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/idm.conf b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/idm.conf
index c85ebcf..95477b0 100644
--- a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/idm.conf
+++ b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/idm.conf
@@ -2,12 +2,15 @@ server {
listen 80;
server_name idm.liz.coffee;
+ 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;
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;
}
}