aboutsummaryrefslogtreecommitdiff
path: root/template2/nginx/https/reverse-proxy.segment.template
blob: 85a942e3474937b845cf99c902ebc030a1e5b4c3 (plain)
1
2
3
4
5
6
7
8
9
10
location ${PATH}/ {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://${UPSTREAM};
}