From 0fda52337c77ff17c60e89f28e710cd46d71b96d Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 21 May 2021 20:33:14 +0200 Subject: [PATCH] nodes/htz-ex42-1048908: update matrix wellknown urls --- .../extras/htz.ex42-1048908/chat.franzi.business | 12 +++++++++--- .../htz.ex42-1048908/dimension.franzi.business | 11 +++++++++-- .../files/extras/htz.ex42-1048908/franzi.business | 12 +++++++++--- .../extras/htz.ex42-1048908/matrix.franzi.business | 12 +++++++++--- 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business b/data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business index 1d1ab0c..cdec6e8 100644 --- a/data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business +++ b/data/nginx/files/extras/htz.ex42-1048908/chat.franzi.business @@ -1,5 +1,11 @@ - location /.well-known/matrix/ { - types { } default_type "application/json"; - alias /etc/matrix-synapse/wellknown/; + location /.well-known/matrix/client { + return 200 '{"m.homeserver": {"base_url": "https://matrix.franzi.business"},"m.identity_server": {"base_url": "https://matrix.org"},"im.vector.riot.jitsi": {"preferredDomain": "meet.ffmuc.net"}}'; + default_type application/json; + add_header Access-Control-Allow-Origin *; + } + + location /.well-known/matrix/server { + return 200 '{"m.server": "matrix.franzi.business:443"}'; + default_type application/json; add_header Access-Control-Allow-Origin *; } diff --git a/data/nginx/files/extras/htz.ex42-1048908/dimension.franzi.business b/data/nginx/files/extras/htz.ex42-1048908/dimension.franzi.business index 6312d6a..8b6ed66 100644 --- a/data/nginx/files/extras/htz.ex42-1048908/dimension.franzi.business +++ b/data/nginx/files/extras/htz.ex42-1048908/dimension.franzi.business @@ -1,6 +1,13 @@ add_header Content-Security-Policy "frame-ancestors 'self' chat.franzi.business matrix.nyantec.com"; - location /.well-known/matrix/ { - alias /etc/matrix-synapse/wellknown/; + location /.well-known/matrix/client { + return 200 '{"m.homeserver": {"base_url": "https://matrix.franzi.business"},"m.identity_server": {"base_url": "https://matrix.org"},"im.vector.riot.jitsi": {"preferredDomain": "meet.ffmuc.net"}}'; + default_type application/json; + add_header Access-Control-Allow-Origin *; + } + + location /.well-known/matrix/server { + return 200 '{"m.server": "matrix.franzi.business:443"}'; + default_type application/json; add_header Access-Control-Allow-Origin *; } diff --git a/data/nginx/files/extras/htz.ex42-1048908/franzi.business b/data/nginx/files/extras/htz.ex42-1048908/franzi.business index 1d1ab0c..cdec6e8 100644 --- a/data/nginx/files/extras/htz.ex42-1048908/franzi.business +++ b/data/nginx/files/extras/htz.ex42-1048908/franzi.business @@ -1,5 +1,11 @@ - location /.well-known/matrix/ { - types { } default_type "application/json"; - alias /etc/matrix-synapse/wellknown/; + location /.well-known/matrix/client { + return 200 '{"m.homeserver": {"base_url": "https://matrix.franzi.business"},"m.identity_server": {"base_url": "https://matrix.org"},"im.vector.riot.jitsi": {"preferredDomain": "meet.ffmuc.net"}}'; + default_type application/json; + add_header Access-Control-Allow-Origin *; + } + + location /.well-known/matrix/server { + return 200 '{"m.server": "matrix.franzi.business:443"}'; + default_type application/json; add_header Access-Control-Allow-Origin *; } diff --git a/data/nginx/files/extras/htz.ex42-1048908/matrix.franzi.business b/data/nginx/files/extras/htz.ex42-1048908/matrix.franzi.business index c7a4c4c..7644c95 100644 --- a/data/nginx/files/extras/htz.ex42-1048908/matrix.franzi.business +++ b/data/nginx/files/extras/htz.ex42-1048908/matrix.franzi.business @@ -1,6 +1,12 @@ - location /.well-known/matrix/ { - types { } default_type "application/json"; - alias /etc/matrix-synapse/wellknown/; + location /.well-known/matrix/client { + return 200 '{"m.homeserver": {"base_url": "https://matrix.franzi.business"},"m.identity_server": {"base_url": "https://matrix.org"},"im.vector.riot.jitsi": {"preferredDomain": "meet.ffmuc.net"}}'; + default_type application/json; + add_header Access-Control-Allow-Origin *; + } + + location /.well-known/matrix/server { + return 200 '{"m.server": "matrix.franzi.business:443"}'; + default_type application/json; add_header Access-Control-Allow-Origin *; }