Set forwarded header

This commit is contained in:
Bob Mottram 2016-12-31 14:16:58 +00:00
parent 82ae5fb152
commit ec8a379e1d
1 changed files with 5 additions and 5 deletions

View File

@ -54,29 +54,29 @@ function matrix_nginx {
matrix_identityserver_proxy_str=' \ matrix_identityserver_proxy_str=' \
location /matrixid { \ location /matrixid { \
proxy_pass http://localhost:8081; \ proxy_pass http://localhost:8081; \
proxy_buffering on; \ proxy_set_header X-Forwarded-For $remote_addr; \
}' }'
matrix_proxy_str=' \ matrix_proxy_str=' \
location /matrix { \ location /matrix { \
proxy_pass https://localhost:8448; \ proxy_pass https://localhost:8448; \
proxy_buffering on; \ proxy_set_header X-Forwarded-For $remote_addr; \
}' }'
turn_proxy_str=' \ turn_proxy_str=' \
location /turn { \ location /turn { \
proxy_pass https://localhost:3478; \ proxy_pass https://localhost:3478; \
proxy_buffering on; \ proxy_set_header X-Forwarded-For $remote_addr; \
}' }'
if [[ $ONION_ONLY != 'no' ]]; then if [[ $ONION_ONLY != 'no' ]]; then
matrix_proxy_str=' \ matrix_proxy_str=' \
location /matrix { \ location /matrix { \
proxy_pass http://localhost:8448; \ proxy_pass http://localhost:8448; \
proxy_buffering on; \ proxy_set_header X-Forwarded-For $remote_addr; \
}' }'
turn_proxy_str=' \ turn_proxy_str=' \
location /turn { \ location /turn { \
proxy_pass http://localhost:3478; \ proxy_pass http://localhost:3478; \
proxy_buffering on; \ proxy_set_header X-Forwarded-For $remote_addr; \
}' }'
fi fi