embed well-known files in nginx command

This commit is contained in:
Hermes committed 2026-07-27 12:10:08 +00:00
1 parent 46555b28e5
commit d02a1f3ba4
2 files changed
+42 -4

No files matched your search

+21 -2
View File
@@ -30,8 +30,27 @@ services:
restart: unless-stopped
expose:
- "80"
volumes:
- ./well-known:/usr/share/nginx/html/.well-known:ro
command:
- sh
- -c
- |
mkdir -p /usr/share/nginx/html/.well-known/matrix
cat > /usr/share/nginx/html/.well-known/matrix/server <<'EOF'
{
"m.server": "mmdv-chats.dynv6.net"
}
EOF
cat > /usr/share/nginx/html/.well-known/matrix/client <<'EOF'
{
"m.homeserver": {
"base_url": "https://mmdv-chats.dynv6.net"
},
"m.identity_server": {
"base_url": "https://mmdv-chats.dynv6.net"
}
}
EOF
nginx -g 'daemon off;'
labels:
traefik.enable: "true"
traefik.http.routers.tuwunel-wk.entrypoints: "https"