| @@ -119,7 +119,7 @@ | |||||
| # Redirect other endpoints registered by the media-repo to its container | # Redirect other endpoints registered by the media-repo to its container | ||||
| # /_matrix/client/r0/logout | # /_matrix/client/r0/logout | ||||
| # /_matrix/client/r0/logout/all | # /_matrix/client/r0/logout/all | ||||
| location ~ /_matrix/client/(r0|v1|v3|unstable)/(logout|logout/all) { | |||||
| location ~ ^/_matrix/client/(r0|v1|v3|unstable)/(logout|logout/all) { | |||||
| {% if matrix_nginx_proxy_enabled %} | {% if matrix_nginx_proxy_enabled %} | ||||
| {# Use the embedded DNS resolver in Docker containers to discover the service #} | {# Use the embedded DNS resolver in Docker containers to discover the service #} | ||||
| resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s; | resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s; | ||||
| @@ -142,7 +142,7 @@ | |||||
| # Redirect other endpoints registered by the media-repo to its container | # Redirect other endpoints registered by the media-repo to its container | ||||
| # /_matrix/client/r0/admin/purge_media_cache | # /_matrix/client/r0/admin/purge_media_cache | ||||
| # /_matrix/client/r0/admin/quarantine_media/{roomId:[^/]+} | # /_matrix/client/r0/admin/quarantine_media/{roomId:[^/]+} | ||||
| location ~ /_matrix/client/(r0|v1|v3|unstable)/admin/(purge_media_cache|quarantine_media/.*) { | |||||
| location ~ ^/_matrix/client/(r0|v1|v3|unstable)/admin/(purge_media_cache|quarantine_media/.*) { | |||||
| {% if matrix_nginx_proxy_enabled %} | {% if matrix_nginx_proxy_enabled %} | ||||
| {# Use the embedded DNS resolver in Docker containers to discover the service #} | {# Use the embedded DNS resolver in Docker containers to discover the service #} | ||||
| resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s; | resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s; | ||||
| @@ -185,7 +185,7 @@ | |||||
| {% endif %} | {% endif %} | ||||
| {% if matrix_nginx_proxy_proxy_matrix_user_directory_search_enabled %} | {% if matrix_nginx_proxy_proxy_matrix_user_directory_search_enabled %} | ||||
| location ~ /_matrix/client/(r0|v3)/user_directory/search { | |||||
| location ~ ^/_matrix/client/(r0|v3)/user_directory/search { | |||||
| {% if matrix_nginx_proxy_enabled %} | {% if matrix_nginx_proxy_enabled %} | ||||
| {# Use the embedded DNS resolver in Docker containers to discover the service #} | {# Use the embedded DNS resolver in Docker containers to discover the service #} | ||||
| resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s; | resolver {{ matrix_nginx_proxy_http_level_resolver }} valid=5s; | ||||