dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Ability to add own wildcard domain/subdomain

Open mohali-id opened this issue 1 year ago • 8 comments

What problem will this feature address?

I want to use my own wildcard sub domain such as application-1312-asdkj.example.com instead of application-1312-asdkj.traefik.me

Describe the solution you'd like

An option on setting organization to add wildcard subdomain such as *.example.com

Describe alternatives you've considered

An option on setting organization to add wildcard subdomain such as *.example.com

Additional context


Will you send a PR to implement it?

Yes

mohali-id avatar Mar 05 '25 06:03 mohali-id

Would be neat to add own certificate aswell without needing to hack into traefik to add our own cert files

steadexe avatar Mar 07 '25 14:03 steadexe

This can already be accomplished. I am using my own wildcard subdomain with letsencrypt to manage the cert renewals. Could this be more automagical, yes! Configuring Traefik does require a little more advanced skill for sure. I saw there is a feature request for Caddy which may simplify it depending on the implementation.

jrparks avatar Mar 07 '25 22:03 jrparks

Would be neat to add own certificate aswell without needing to hack into traefik to add our own cert files

You can. Add the certificate under Settings > Certificates and then set the Certificate Provider to None on your domain. After a re-deploy, your cert will be used. You do not need to hack files.

drudge avatar Mar 12 '25 22:03 drudge

Would be neat to add own certificate aswell without needing to hack into traefik to add our own cert files

You can. Add the certificate under Settings > Certificates and then set the Certificate Provider to None on your domain. After a re-deploy, your cert will be used. You do not need to hack files.

It wasn't working for Dokploy itself, it was serving TRAEFIK DEFAULT CERTIFICATE

I had to create a file in dynamic folder to load my certificates maybe I was missing something.

It looks like it works now

steadexe avatar Mar 13 '25 09:03 steadexe

Hello, I'd like to use this feature as well Can you post what should be changed in Traefik config files for this to work? Maybe I can work out a PR to make it work.

luixo avatar Aug 15 '25 22:08 luixo

Ok, this could be made more user friendly and more clear. And next to that, when you do stumble upon this issue and try it, it doesn't work.

What I did, created a cloudflare origin certificate. Added it in the certificate menu in Dokploy and put all my app domains to https and as resolver "none". Next I restarted Traefik and waited... But it doesn't work. Or I don't get it. The invalid key my domains are serving is the Cloudflare origin certificate. But my browser still says it's invalid. Which is about right. But if it is all so obvious for you, why don't you write a little explanation in the docs to help others?

Frits1980 avatar Aug 21 '25 13:08 Frits1980

I was able to set this up, see my comment here: https://github.com/Dokploy/dokploy/discussions/2057#discussioncomment-14328969

smcalilly avatar Sep 06 '25 21:09 smcalilly

+1, also i need to support with prefix like this *-test.example.com or test-*.example.com

programming-with-ia avatar Aug 01 '26 11:08 programming-with-ia