services: letsencrypt: Matrix JSON configuration

This commit is contained in:
Bruno BELANYI 2020-07-15 02:53:59 +02:00
parent a2b43b2855
commit 710bfe0f57
2 changed files with 7 additions and 14 deletions

View file

@ -23,17 +23,3 @@ server {
client_max_body_size 10M; client_max_body_size 10M;
} }
} }
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name belanyi.fr;
include /config/nginx/ssl.conf;
location /.well-known/matrix/server {
default_type application/json;
return 200 '{"m.server": "matrix.belanyi.fr:443"}';
}
}

View file

@ -26,6 +26,13 @@ server {
location / { location / {
try_files $uri $uri/ /index.html /index.php?$args =404; try_files $uri $uri/ /index.html /index.php?$args =404;
} }
# Matrix configuration
location /.well-known/matrix/server {
default_type application/json;
return 200 '{"m.server": "matrix.belanyi.fr:443"}';
}
} }
# CV block # CV block