From 95b92dc1e6d8b60c30845ef17f75ed333eaf17d1 Mon Sep 17 00:00:00 2001 From: y1lm0z Date: Wed, 15 Jul 2026 22:17:23 +0000 Subject: [PATCH] =?UTF-8?q?Dosyalar=C4=B1=20"apps/matrix/ngnix"=20dizinine?= =?UTF-8?q?=20y=C3=BCkle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/matrix/ngnix/Dockerfile | 3 +++ apps/matrix/ngnix/default.conf.template | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 apps/matrix/ngnix/Dockerfile create mode 100644 apps/matrix/ngnix/default.conf.template diff --git a/apps/matrix/ngnix/Dockerfile b/apps/matrix/ngnix/Dockerfile new file mode 100644 index 0000000..5fa1c76 --- /dev/null +++ b/apps/matrix/ngnix/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:1.27-alpine + +COPY default.conf.template /etc/nginx/templates/default.conf.template diff --git a/apps/matrix/ngnix/default.conf.template b/apps/matrix/ngnix/default.conf.template new file mode 100644 index 0000000..fc4a3bd --- /dev/null +++ b/apps/matrix/ngnix/default.conf.template @@ -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; + } +}