[solved] custom domain doesn't work with `redirect-to-https` middleware in dokploy config.
I've got this config, this works but if I uncomment middlware - redirect-to-https it doesn't work (which is default config), any ideas ? I've been using nginx never used traefik, is it intended or ?
19 Replies
The websecure router shouldn't have the redirect option middleware. Traefik logs usually points out what's wrong when the config is not working
I've tried that as well, adding redirect-to-https in web and removing it from websecure but still not working..
it keeps on redirecting, so I get that http to https valid, and websecure just stay as it is.. but then it was not working.
I'm not sure why you're trying to edit the file manually. There usually few reasons to do that. I assume the service also exists? It's the default dokploy router so it should
yhh service is also there I'm just giving you the relavent config, I just added domain to webserver but it wasn't working so I disabled middleware in websecure still no changes, then I disabled middlware in web and it worked... just wanted to know why ? bcoz it should be the other way around
Weird. How you played around with any other Traefik files?
the file system ??, I dunno what you mean tbh

Yes I mean the files there
so, this is my complete config
should work but its not working
From a quick glance, that looks correct. Check Traefik logs
cool, lemme check
your status is good one
I found this in logs
Have you checked your firewall? Is port 80 and 443 open? On 443 check that it also allows for UDP traffic
it was cloudflare 👀 , changed mode from flexible to full strict and its solved. this helped... thanks bud.. cheers 🍻
@Henrik there is one thing thoug, on domain routing is a bit slow. vs on ip it was almost instant,.. ideas ?
I've added ip vs domain fetches.


93ms vs 1.5 seconds
Slow DNS maybe
am using cloudflare, any other suggestions bud.. should I try switching to other services ?
I would guess it's a DNS propagation issue. Give it some time to let the record reach other authoritative servers.
I've changed the dns like two weeks ago..
Lol. I have no clue