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

Remove matrix nginx entry

parent d6cf0997
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,10 @@ matrix_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME)
function matrix_nginx {
matrix_proxy_str='
location /matrix {
proxy_pass https://localhost:8448;
proxy_buffering on;
matrix_proxy_str=' \
location /matrix { \
proxy_pass https://localhost:8448; \
proxy_buffering on; \
}'
if [ ! -f /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} ]; then
......@@ -364,6 +364,9 @@ function remove_matrix {
delgroup matrix
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
sed -i '/matrix/d' $COMPLETION_FILE
}
......
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