services: letsencrypt: Matrix JSON configuration
This commit is contained in:
parent
a2b43b2855
commit
710bfe0f57
|
@ -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"}';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue