summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorTicho 34782694 <ticho@cyberdi.sk>2022-01-07 13:06:21 +0000
committerTicho 34782694 <ticho@cyberdi.sk>2022-01-07 13:06:21 +0000
commitb746f17e562ba02d9471d23c42c9bb8c9f4ee070 (patch)
tree66dc1e41ca0e0011115a5b64a74d9a6292e3f4fd /docker
parent9b57c89df6861eef97b8615ff22433f26c43a377 (diff)
downloadconduit-b746f17e562ba02d9471d23c42c9bb8c9f4ee070.zip
Make traefik+nginx config more self-contained
The nginx instance which is serving the .well-known endpoints can serve the simple JSON replies directly from memory, instead of having them as external files on disk.
Diffstat (limited to 'docker')
-rw-r--r--docker/README.md30
1 files changed, 12 insertions, 18 deletions
diff --git a/docker/README.md b/docker/README.md
index 19d9dca..1f38d66 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -94,26 +94,20 @@ So...step by step:
server_name <SUBDOMAIN>.<DOMAIN>;
listen 80 default_server;
- location /.well-known/matrix/ {
- root /var/www;
- default_type application/json;
- add_header Access-Control-Allow-Origin *;
+ location /.well-known/matrix/server {
+ return 200 '{"m.server": "<SUBDOMAIN>.<DOMAIN>:443"}';
+ add_header Content-Type application/json;
}
- }
- ```
- - `./nginx/www/.well-known/matrix/client` (relative to the compose file, you can change this, but then also need to change the volume mapping)
- ```json
- {
- "m.homeserver": {
- "base_url": "https://<SUBDOMAIN>.<DOMAIN>"
- }
- }
- ```
- - `./nginx/www/.well-known/matrix/server` (relative to the compose file, you can change this, but then also need to change the volume mapping)
- ```json
- {
- "m.server": "<SUBDOMAIN>.<DOMAIN>:443"
+ location /.well-known/matrix/client {
+ return 200 '{"m.homeserver": {"base_url": "https://<SUBDOMAIN>.<DOMAIN>"}}';
+ add_header Content-Type application/json;
+ add_header "Access-Control-Allow-Origin" *;
+ }
+
+ location / {
+ return 404;
+ }
}
```