Add trailing-slash redirect for /synapse-admin

This commit is contained in:
Slavi Pantaleev 2020-07-22 13:15:03 +03:00
parent 296bd6e211
commit 46135fb30c

View File

@ -15,7 +15,9 @@
- name: Generate Synapse Admin proxying configuration for matrix-nginx-proxy
set_fact:
matrix_synapse_admin_matrix_nginx_proxy_configuration: |
location ~ ^{{ matrix_synapse_admin_public_endpoint }}/?(.*) {
rewrite ^{{ matrix_synapse_admin_public_endpoint }}$ $scheme://$server_name{{ matrix_synapse_admin_public_endpoint }}/ permanent;
location ~ ^{{ matrix_synapse_admin_public_endpoint }}/(.*) {
{% if matrix_nginx_proxy_enabled|default(False) %}
{# Use the embedded DNS resolver in Docker containers to discover the service #}
resolver 127.0.0.11 valid=5s;