From 9b6d909d1177d685adbb86d07eb4dfcff78b2e5b Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 6 Oct 2023 05:06:56 +0200 Subject: [PATCH] Add Public-Reverse-Proxy configuration for new Matrix server --- .../public-reverse-proxy/nginx/acme_challenge.conf | 1 + .../configs/public-reverse-proxy/nginx/nginx.conf | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf b/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf index 072723c..acb8c66 100644 --- a/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf +++ b/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf @@ -7,6 +7,7 @@ map $host $upstream_acme_challenge_host { wiki.ccchh.net 172.31.17.146:31820; onlyoffice.hamburg.ccc.de 172.31.17.147:31820; netbox.hamburg.ccc.de 172.31.17.149:31820; + matrix.hamburg.ccc.de 172.31.17.150:31820; default ""; } diff --git a/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf b/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf index 8468553..4b6a42b 100644 --- a/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf +++ b/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf @@ -26,6 +26,7 @@ stream { wiki.ccchh.net 172.31.17.146:8443; onlyoffice.hamburg.ccc.de 172.31.17.147:8443; netbox.hamburg.ccc.de 172.31.17.149:8443; + matrix.hamburg.ccc.de 172.31.17.150:8443; } server { @@ -35,6 +36,14 @@ stream { ssl_preread on; proxy_protocol on; } + + server { + listen 0.0.0.0:8448; + listen [::]:8448; + proxy_pass 172.31.17.150:8448; + ssl_preread on; + proxy_protocol on; + } } # Still have the default http block, so the `acme_challenge.conf` works.