From f4ade9c109e73fa329a6b7bf087652f75ee96d13 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 15 Dec 2023 20:38:04 +0200 Subject: [PATCH] Web proxy: Matrix server config. --- .../host01/conf.d/matrix.shore.co.il.conf | 30 +++++++++++++++++++ Compose/web-proxy/host01/docker-compose.yml | 1 + 2 files changed, 31 insertions(+) create mode 100644 Compose/web-proxy/host01/conf.d/matrix.shore.co.il.conf diff --git a/Compose/web-proxy/host01/conf.d/matrix.shore.co.il.conf b/Compose/web-proxy/host01/conf.d/matrix.shore.co.il.conf new file mode 100644 index 0000000..35decc7 --- /dev/null +++ b/Compose/web-proxy/host01/conf.d/matrix.shore.co.il.conf @@ -0,0 +1,30 @@ +# vim: ft=nginx +map $host $matrix { default synapse; } + +server { + listen 80; + listen [::]:80; + server_name matrix.shore.co.il; + include snippets/robots-disallow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/www-acme-challenge.conf; + include snippets/redirect-https.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name matrix.shore.co.il; + include snippets/robots-disallow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/ssl-modern.conf; + + location / { + proxy_pass http://$matrix:8008$request_uri; + proxy_http_version 1.1; + include snippets/proxy-headers.conf; + client_max_body_size 50m; + } +} diff --git a/Compose/web-proxy/host01/docker-compose.yml b/Compose/web-proxy/host01/docker-compose.yml index 842c67f..b7f28f0 100644 --- a/Compose/web-proxy/host01/docker-compose.yml +++ b/Compose/web-proxy/host01/docker-compose.yml @@ -15,6 +15,7 @@ services: - git.shore.co.il - kibana.shore.co.il - lam.shore.co.il + - matrix.shore.co.il - mta-sts.shore.co.il - sogo.shore.co.il - vouch.shore.co.il -- GitLab