From 7337fb49ed74b41f5de979fa06c3d663b6c9ebdf Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 2 Oct 2021 22:11:10 -0500 Subject: [PATCH] Narrow down the pass locations for Matrix to just server endpoints --- playbooks/prod_com.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playbooks/prod_com.yml b/playbooks/prod_com.yml index 07878d3..e74e62d 100755 --- a/playbooks/prod_com.yml +++ b/playbooks/prod_com.yml @@ -28,7 +28,14 @@ vars: ingress_servers: - name: matrix.desu.ltd - proxy_pass: http://synapse:8008 + proxies: + - location: ~* ^(\/_matrix|\/_synapse\/client) + pass: http://synapse:8008 + locations: + - location: / + contents: | + default_type text/html; + return 200 'Watch this space...'; directives: - "client_max_body_size 0" tags: [ web, docker, ingress ]