diff --git a/asd.yaml b/asd.yaml deleted file mode 100644 index 4bb72ea..0000000 --- a/asd.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# ./traefik/dynamic_conf.yml - -tcp: - routers: - # Router for HTTPS (Passthrough) - nginx-secure-router: - rule: "HostSNI(`*`)" - service: nginx-secure-service - # Passthrough must be true for SSL to reach Nginx encrypted - tls: - passthrough: true - entryPoints: - - "https" - - services: - # Service defining the external IP - nginx-secure-service: - loadBalancer: - servers: - # This is the actual external IP and Port of your Nginx - - address: "192.168.1.85:443" diff --git a/dev/forward-to-legacy-nginx.yaml b/dev/forward-to-legacy-nginx.yaml index 4bb72ea..4852ec7 100644 --- a/dev/forward-to-legacy-nginx.yaml +++ b/dev/forward-to-legacy-nginx.yaml @@ -1,11 +1,11 @@ -# ./traefik/dynamic_conf.yml +# ./traefik/forward-to-legacy-nginx.yml tcp: routers: # Router for HTTPS (Passthrough) - nginx-secure-router: + nginx-legacy-router: rule: "HostSNI(`*`)" - service: nginx-secure-service + service: nginx-legacy-service # Passthrough must be true for SSL to reach Nginx encrypted tls: passthrough: true @@ -14,8 +14,8 @@ tcp: services: # Service defining the external IP - nginx-secure-service: + nginx-legacy-service: loadBalancer: servers: # This is the actual external IP and Port of your Nginx - - address: "192.168.1.85:443" + - address: "webserver:443" diff --git a/docker-compose.yaml b/docker-compose.yaml index d6511bc..3ecd04c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,6 +6,7 @@ services: - no-new-privileges:true networks: - proxy + - legacy-nginx command: - "--providers.docker=true" - "--providers.docker.exposedbydefault=false" @@ -43,4 +44,7 @@ services: - traefik.http.routers.https.tls=true - traefik.http.routers.https.tls.certresolver=letsencrypt networks: - proxy: + proxy: + legacy-nginx: + name: proxy + external: true