DokployD
Dokploy10mo ago
24 replies
iamarpit

[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 ?
  routers:
    dokploy-router-app:
      rule: Host(`console.algosensei.org`)
      service: dokploy-service-app
      entryPoints:
        - web
      # middlewares:
      #   - redirect-to-https
    dokploy-router-app-secure:
      rule: Host(`console.algosensei.org`)
      service: dokploy-service-app
      entryPoints:
        - websecure
      middlewares:
        - redirect-to-https
      tls:
        certResolver: letsencrypt
Was this page helpful?