1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Create server_name.conf

To allow the automatic well-known system for server-name detection instead of DNS record
This commit is contained in:
Thatoo 2019-08-05 22:55:35 +02:00 committed by GitHub
parent b3e5b2dacc
commit 4f2de63065
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
conf/server_name.conf Normal file
View file

@ -0,0 +1,5 @@
location /.well-known/matrix/ {
return 200 '{"m.server": "$domain", "m.homeserver": "https://$domain"}';
add_header Content-Type application/json;
add_header Access-Control-Allow-Origin '*';
}