summaryrefslogtreecommitdiff
path: root/playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-05-01 23:07:54 -0700
committerElizabeth Hunt <me@liz.coffee>2025-05-01 23:07:54 -0700
commite5bca60eb98d76b32388a98418ab6fa3e0eff357 (patch)
tree72c7bbb4f8eadb5a8885c2f23acebafca77eb8f7 /playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf
parent83aef76c5a74269a2d15ff80722adc90b002acc1 (diff)
downloadinfra-e5bca60eb98d76b32388a98418ab6fa3e0eff357.tar.gz
infra-e5bca60eb98d76b32388a98418ab6fa3e0eff357.zip
Fix real ip's from upstream proxies
Diffstat (limited to 'playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf')
-rw-r--r--playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf
index b668310..e8c9458 100644
--- a/playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf
+++ b/playbooks/roles/outbound/templates/proxy/nginx/conf.d/kanban.conf
@@ -2,12 +2,15 @@ server {
listen 80;
server_name kanban.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;
}
}