From a58b3ac17f07dee857c314ed5394b9b1e18d220f Mon Sep 17 00:00:00 2001 From: Hans van Zijst Date: Tue, 12 Nov 2024 15:57:32 +0100 Subject: [PATCH] Layout corrected. --- nginx/README.md | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) 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; } ```