From 377e703746f5273f4648ec28b09f5473fb0c242f Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 20 Nov 2022 18:01:44 +0200 Subject: [PATCH] Fixup Traefik example configuration Related to e9e84341a91fb0 --- docs/configuring-playbook-own-webserver.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/configuring-playbook-own-webserver.md b/docs/configuring-playbook-own-webserver.md index 04e2e4870..83fd42048 100644 --- a/docs/configuring-playbook-own-webserver.md +++ b/docs/configuring-playbook-own-webserver.md @@ -187,9 +187,7 @@ matrix_nginx_proxy_container_extra_arguments: - '--label "traefik.http.routers.matrix-nginx-proxy-federation.tls.certResolver=default"' # The Nginx proxy container uses port `matrix_nginx_proxy_proxy_matrix_federation_port (8448) internally - '--label "traefik.http.services.matrix-nginx-proxy-federation.loadbalancer.server.port={{ matrix_nginx_proxy_proxy_matrix_federation_port }}"' - - '--label "traefik.http.services.matrix-nginx-proxy-federation.loadbalancer.server.scheme={{ 'https' if matrix_nginx_proxy_https_enabled else 'http' }}"' - -matrix_synapse_reverse_proxy_companion_container_labels_traefik_enabled: true + - '--label "traefik.http.services.matrix-nginx-proxy-federation.loadbalancer.server.scheme={{ "https" if matrix_nginx_proxy_https_enabled else "http" }}"' ``` This method uses labels attached to the Nginx and Synapse containers to provide the Traefik Docker provider with the information it needs to proxy `matrix.DOMAIN`, `element.DOMAIN`, `dimension.DOMAIN` and `jitsi.DOMAIN`. Some [static configuration](https://docs.traefik.io/v2.0/reference/static-configuration/file/) is required in Traefik; namely, having endpoints on ports 443 and 8448 and having a certificate resolver.