Format of proxying
This commit is contained in:
parent
433c502718
commit
418a8bb9d6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue