Dosyaları "apps/matrix/ngnix" dizinine yükle

This commit is contained in:
2026-07-15 22:17:23 +00:00
parent 36a17fbe2d
commit 95b92dc1e6
2 changed files with 22 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
FROM nginx:1.27-alpine
COPY default.conf.template /etc/nginx/templates/default.conf.template
+19
View File
@@ -0,0 +1,19 @@
server {
listen 80 default_server;
server_name _;
location /.well-known/matrix/server {
default_type application/json;
return 200 '{"m.server": "${APP_DOMAIN}:443"}';
}
location /.well-known/matrix/client {
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"m.homeserver": {"base_url": "https://${APP_DOMAIN}"}}';
}
location / {
return 404;
}
}