I’ve been trying to replace my NGINX Proxy Manager instance with Traefik (Most of my incoming traffic goes through proxy manager and then through Traefik anyways). I am able to set up all my sites and generate certificates for them. I can access the sites and they all work perfectly fine going directly through Traefik.
But as soon as I turn on the proxy feature all of my sites stop working and I get the error “Error 522, Connection timed out”. This only happens when I port forward Traefik, and not when I forward NGINX Proxy manager. I’ve already played around with the SSL/TLS options in the Cloudflare dashboard, but none of them seem to fix my issue.
I’ve already read some other posts on this issue, but most of the time it has something to do with incorrect packet routing and/or wrong port forwarding. I’ve already concluded that those causes have nothing to do with my issue.
Here are my config files:
entrypoints: unsecure: address: :80 secure: address: :443 providers: file: directory: /etc/traefik/services watch: true certificatesResolvers: myresolver: acme: email: "---" storage: "/etc/traefik/acme.json" dnsChallenge: provider: cloudflare delayBeforeCheck: 0
onweerdetectie.yml (one of the sites config file)
http: routers: onweerdetectieRouterHttp: rule: "Host(`onweerdetectie.jdekuijper.nl`)" service: "onweerdetectie" middlewares: - "redirecthttps" onweerdetectieRouterHttps: rule: "Host(`onweerdetectie.jdekuijper.nl`)" service: "onweerdetectie" tls: certResolver: myresolver options: tlsoptions services: onweerdetectie: loadBalancer: servers: - url: "http://192.168.20.60:8080" - url: "http://192.168.20.61:8080" - url: "http://192.168.1.22:8080" middlewares: redirecthttps: redirectScheme: scheme: "https" permanent: true tls: options: tlsoptions: minVersion: VersionTLS12
If anyone has any questions, please ask them and I’ll get back to you as soon as possible.
Jeroen de Kuijper