From 6a31fba346d9da434a3d7cfd2d342658d002cc2e Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 28 Jan 2023 17:04:55 +0200 Subject: [PATCH] Fix synapse-admin reverse-proxying regression caused by 0.8.6 Related to f165aa5d481e048089cb0b367ef61036dd893643 Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2424 --- .../tasks/inject_into_nginx_proxy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/custom/matrix-synapse-admin/tasks/inject_into_nginx_proxy.yml b/roles/custom/matrix-synapse-admin/tasks/inject_into_nginx_proxy.yml index 6a4af859c..b082190d9 100644 --- a/roles/custom/matrix-synapse-admin/tasks/inject_into_nginx_proxy.yml +++ b/roles/custom/matrix-synapse-admin/tasks/inject_into_nginx_proxy.yml @@ -24,6 +24,14 @@ {# Generic configuration for use outside of our container setup #} proxy_pass http://127.0.0.1:8766/$1; {% endif %} + + {# + Workaround synapse-admin serving all assets at /static. + See: https://github.com/Awesome-Technologies/synapse-admin/issues/322 + #} + sub_filter_once off; + sub_filter_types text/css; + sub_filter "/static/" "{{ matrix_synapse_admin_public_endpoint }}/static/"; } - name: Register Synapse Admin proxying configuration with matrix-nginx-proxy