Download:
child 230:271d3404185b
parent 228:5fc7b3d2b864
229:0b93ede3c0d1
Anton Shestakov <av6@dwimlabs.net>, Sat, 03 Dec 2016 01:28:43 +0800
provision: use the usual set of X-headers in /http-bind proxy block

1 файлов изменено, 4 вставок(+), 1 удалений(-) [+]
contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im file | annotate | diff | comparison | revisions
--- a/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Sat Dec 03 01:27:01 2016 +0800
+++ b/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Sat Dec 03 01:28:43 2016 +0800
@@ -49,15 +49,18 @@
root {{ dir }};
location / {
- expires max;
gzip on;
gzip_types text/css application/javascript application/x-javascript text/javascript;
gzip_vary on;
+ expires max;
}
location /http-bind {
proxy_pass https://127.0.0.1:5281/http-bind;
proxy_set_header Host $host;
+ proxy_set_header X-Scheme $scheme;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
tcp_nodelay on;