Commit fdd52172 authored by Jocelyn Delalande's avatar Jocelyn Delalande

nginx: pass well-known headers to to reverse proxies

parent 0899eeef
......@@ -75,6 +75,11 @@ server {
{% elif location.type in ('reverse-proxy', 'reverse-proxy-websocket') %}
proxy_pass {{ }};
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-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
{% if location.type == 'reverse-proxy-websocket' %}
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment