diff --git a/conf/nginx.conf b/conf/nginx.conf index 79b2fd8..d805a78 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,9 +11,6 @@ location / { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; } location /.well-known/acme-challenge { @@ -28,15 +25,7 @@ location /.well-known/matrix/client { return 200 '{ "m.homeserver": { "base_url": "https://__SYNAPSE_DOMAIN__" } }'; } -location /_matrix { - proxy_pass http://127.0.0.1:8008; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $host; - proxy_read_timeout 600; - client_max_body_size 100M; -} - -location /_synapse/admin { +location ~* ^(\/_matrix|\/_synapse\/admin|\/_synapse\/client) { proxy_pass http://127.0.0.1:8008; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host;