Skip to content
Snippets Groups Projects
Commit ec8a379e authored by Bob Mottram's avatar Bob Mottram
Browse files

Set forwarded header

parent 82ae5fb1
No related branches found
No related tags found
No related merge requests found
......@@ -54,29 +54,29 @@ function matrix_nginx {
matrix_identityserver_proxy_str=' \
location /matrixid { \
proxy_pass http://localhost:8081; \
proxy_buffering on; \
proxy_set_header X-Forwarded-For $remote_addr; \
}'
matrix_proxy_str=' \
location /matrix { \
proxy_pass https://localhost:8448; \
proxy_buffering on; \
proxy_set_header X-Forwarded-For $remote_addr; \
}'
turn_proxy_str=' \
location /turn { \
proxy_pass https://localhost:3478; \
proxy_buffering on; \
proxy_set_header X-Forwarded-For $remote_addr; \
}'
if [[ $ONION_ONLY != 'no' ]]; then
matrix_proxy_str=' \
location /matrix { \
proxy_pass http://localhost:8448; \
proxy_buffering on; \
proxy_set_header X-Forwarded-For $remote_addr; \
}'
turn_proxy_str=' \
location /turn { \
proxy_pass http://localhost:3478; \
proxy_buffering on; \
proxy_set_header X-Forwarded-For $remote_addr; \
}'
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment