Set forwarded header
This commit is contained in:
parent
82ae5fb152
commit
ec8a379e1d
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue