diff --git a/nginx/README.md b/nginx/README.md index c612846..79c37ec 100644 --- a/nginx/README.md +++ b/nginx/README.md @@ -58,29 +58,29 @@ server { include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/ssl/dhparams.pem; - server_name matrixdev.procolix.com; + server_name matrixdev.procolix.com; - location /.well-known/matrix/client { - return 200 '{ - "m.homeserver": {"base_url": "https://vm02199.procolix.com"}, - "org.matrix.msc3575.proxy": {"url": "https://vm02199.procolix.com"} - }'; - default_type application/json; + location /.well-known/matrix/client { + return 200 '{ + "m.homeserver": {"base_url": "https://vm02199.procolix.com"}, + "org.matrix.msc3575.proxy": {"url": "https://vm02199.procolix.com"} + }'; + default_type application/json; + } + + location /.well-known/matrix/server { + return 200 '{"m.server": "vm02199.procolix.com"}'; + default_type application/json; + } + + location / { + if ($scheme = http) { + return 301 https://$host$request_uri; } + } - location /.well-known/matrix/server { - return 200 '{"m.server": "vm02199.procolix.com"}'; - default_type application/json; - } - - location / { - if ($scheme = http) { - return 301 https://$host$request_uri; - } - } - - access_log /var/log/nginx/matrixdev-access.log; - error_log /var/log/nginx/matrixdev-error.log; + access_log /var/log/nginx/matrixdev-access.log; + error_log /var/log/nginx/matrixdev-error.log; } ```