summaryrefslogtreecommitdiff
path: root/Applications/Services/matrix/conduit/nginx/templates/matrix.conf.template
blob: c1e10832bb13a4f318a86e2ab5522f2170fefd14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
   }
}