mirror of
https://github.com/YunoHost-Apps/dendrite_ynh.git
synced 2024-09-03 18:25:58 +02:00
Implement server display name with its NGINX conf
This commit is contained in:
parent
3db21f6be3
commit
9aa7173819
1 changed files with 16 additions and 0 deletions
16
conf/server_name.conf
Normal file
16
conf/server_name.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
location /.well-known/matrix/server {
|
||||
return 200 '{"m.server": "__DOMAIN__:__TLS_PORT__"}';
|
||||
add_header Content-Type application/json;
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
return 200 '{
|
||||
"m.homeserver": { "base_url": "https://__DOMAIN__" },
|
||||
# "im.vector.riot.jitsi": {"preferredDomain": "__JITSI_SERVER__"},
|
||||
# "im.vector.riot.e2ee": {"default": __E2E_ENABLED_BY_DEFAULT__ }
|
||||
}';
|
||||
add_header Content-Type application/json;
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue