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:
parent
b3e5b2dacc
commit
4f2de63065
1 changed files with 5 additions and 0 deletions
5
conf/server_name.conf
Normal file
5
conf/server_name.conf
Normal 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 '*';
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue