Remove matrix nginx entry
This commit is contained in:
parent
d6cf09973f
commit
55294ef465
|
@ -48,10 +48,10 @@ 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:8448;
|
proxy_pass https://localhost:8448; \
|
||||||
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
|
||||||
|
@ -364,6 +364,9 @@ function remove_matrix {
|
||||||
delgroup matrix
|
delgroup matrix
|
||||||
remove_onion_service matrix ${MATRIX_PORT}
|
remove_onion_service matrix ${MATRIX_PORT}
|
||||||
|
|
||||||
|
sed -i "/location \/matrix {/,/}/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||||
|
systemctl restart nginx
|
||||||
|
|
||||||
remove_completion_param install_matrix
|
remove_completion_param install_matrix
|
||||||
sed -i '/matrix/d' $COMPLETION_FILE
|
sed -i '/matrix/d' $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue