Skip to content

Wildcard domain support (*.example.com) not working #3941

@semihanadolu

Description

@semihanadolu

To Reproduce

Description

Wildcard domains (e.g., *.example.com) defined in the Domains section do not work. Navigating to sub.example.com is not routed to the correct service.

Root Cause

Dokploy generates Traefik router rules using Host() matcher which requires exact match. Wildcard routing requires HostRegexp() in Traefik v3.

Steps to Reproduce

  1. Add a domain with host *.example.com
  2. Enable HTTPS with Let's Encrypt
  3. Try to access app.example.com → not routed

Current vs. Expected behavior

Current:

  • Host(*.example.com) ← does not match sub.example.com

Expected:

  • HostRegexp(^.+.example.com$) ← matches any subdomain
  • Wildcard domains are routed correctly to the service
  • DNS Challenge is automatically used for wildcard SSL certificates
  • Users are guided to configure their DNS provider credentials

Provide environment information

- OS: Any (Linux VPS - Ubuntu 22.04+)
- Dokploy Version: All versions
- Deployment Type: Docker Swarm / Docker Standalone
- Traefik Version: 3.x (bundled with Dokploy)

Which area(s) are affected? (Select all that apply)

Traefik

Are you deploying the applications where Dokploy is installed or on a remote server?

Remote server

Additional context

Wildcard SSL certificates require DNS Challenge. The existing letsencrypt resolver uses HTTP Challenge which cannot issue wildcard certificates.

Will you send a PR to fix it?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions