summaryrefslogtreecommitdiff
path: root/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf')
-rw-r--r--playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf
index c810f5a..11e2145 100644
--- a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf
+++ b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/mail.conf
@@ -1,6 +1,11 @@
server {
listen 80;
server_name mail.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;
@@ -8,7 +13,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";
}