Format of proxying

This commit is contained in:
Bob Mottram 2016-12-30 22:58:20 +00:00
parent 433c502718
commit 418a8bb9d6
1 changed files with 8 additions and 8 deletions

View File

@ -48,15 +48,15 @@ matrix_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME) DEFAULT_DOMAIN_NAME)
function matrix_nginx { function matrix_nginx {
matrix_proxy_str=" \ matrix_proxy_str="
location /matrix { \ location /matrix {
proxy_pass https://localhost:${MATRIX_PORT}; \ proxy_pass https://localhost:${MATRIX_PORT};
proxy_buffering on; \ proxy_buffering on;
}" }"
turn_proxy_str=" \ turn_proxy_str="
location /turn { \ location /turn {
proxy_pass https://localhost:${TURN_PORT}; \ proxy_pass https://localhost:${TURN_PORT};
proxy_buffering on; \ proxy_buffering on;
}" }"
if [ ! -f /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} ]; then if [ ! -f /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} ]; then