diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-14 14:16:45 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-14 14:16:45 +0100 |
commit | ab7d9ea1c3f7fb7e650242a5a50004d61ca606ac (patch) | |
tree | a7f172843c53601e5e3cce855a763ff6bb609b16 /Applications/Services/matrix/conduit/nginx/templates | |
parent | 3018784e17707600f8803f1493304bc8333408ed (diff) |
[services] matrix - conduit
Diffstat (limited to 'Applications/Services/matrix/conduit/nginx/templates')
-rw-r--r-- | Applications/Services/matrix/conduit/nginx/templates/matrix.conf.template | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Applications/Services/matrix/conduit/nginx/templates/matrix.conf.template b/Applications/Services/matrix/conduit/nginx/templates/matrix.conf.template new file mode 100644 index 0000000..c1e1083 --- /dev/null +++ b/Applications/Services/matrix/conduit/nginx/templates/matrix.conf.template @@ -0,0 +1,19 @@ +server { + server_name ${CONDUIT_DOMAIN}; + listen 80 default_server; + + location /.well-known/matrix/server { + return 200 '{"m.server": "${CONDUIT_DOMAIN}:443"}'; + types { } default_type "application/json; charset=utf-8"; + } + + location /.well-known/matrix/client { + return 200 '{"m.homeserver": {"base_url": "https://${CONDUIT_DOMAIN}"}}'; + types { } default_type "application/json; charset=utf-8"; + add_header "Access-Control-Allow-Origin" *; + } + + location / { + return 404; + } +} |