A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.
Prerequisites
You need to have a domain name and a DNS provider that supports wildcard subdomains.
You need to use dnsChallenge in Traefik to get wildcard certificates from Let’s Encrypt.
You need to use one of the supported DNS providers.
Each provider needs environment variables to be set in the Traefik configuration. You can find the required variables in the official documentation.If you need fine-grained token, like with Cloudflare, check the provider configurations.
Configuration
Setup your wildcard subdomain DNS records, *.coolify.io.
Go to your Proxy settings (Servers / Proxy menu) and add the following configuration based on your providers. The example will use Hetzner as a provider.
You can also set env_file instead of environment in the example above, but then you need to create a .env file with the HETZNER_API_KEY variable on the server.
Change --certificatesresolvers.letsencrypt.acme.dnschallenge.provider=hetzner to your provider.
Now you have two options to configure your wildcard subdomain for your resources.
Normal
If you would like to use one (wildcard) certificate for all of your resources, you can use this option.It is useful, because Traefik do not need to generate a new certificate for every resource, so new deployments will be available immediately without waiting for the certificate generation.
In your application, set your FQDN to a subdomain you would like to use: https://example.coolify.io.
traefik.http.routers.<unique_router_name>.tls.certresolver should be the same as your certresolver name in Traefik proxy configuration, by default letsencrypt.
traefik.http.services.<unique_service_name>.loadbalancer.server.port should be the same as your application listens on. Port 80 if you use a static deployment.
You cannot use both configurations (Normal & SaaS) at the same time on one
server.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Coolify Documentation","colors":{"primary":"#6B16ED","light":"#FCD34D","dark":"#6B16ED"},"favicon":"/logo/coolify.png","logo":null,"api":{"openapi":["/openapi.yaml"]},"background":{"decoration":null,"color":{"light":null,"dark":"#181818"}},"navbar":{"links":[{"label":"Home","href":"https://coolify.io"},{"label":"Support","href":"mailto:hi@coollabs.io"}],"primary":{"type":"button","label":"Cloud","href":"https://app.coolify.io"}},"seo":{"metatags":{"og:site_name":"Coolify","og:description":"Self-hosting with superpowers.","og:title":"Coolify Documentation","og:url":"https://coolify.io","og:locale":"en_US","og:image":"https://cdn.coollabs.io/assets/coolify/og-image-docs.png","twitter:title":"Coolify Documentation","twitter:description":"Self-hosting with superpowers.","twitter:url":"https://twitter.com/coolifyio","twitter:site":"@coolifyio"},"indexing":"all"},"footer":{"socials":{"twitter":"https://twitter.com/coolifyio","github":"https://github.com/coollabsio/coolify"}},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://coolify.io/discord","icon":"discord"},{"anchor":"Sponsorship","href":"https://coolify.io/sponsorship","icon":"heart-pulse"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"coollabstechnologiesbt","hasAudioNarration":false,"actualSubdomain":"coollabstechnologiesbt","customDomains":[],"gitSource":{"type":"github","owner":"coollabsio","repo":"documentation-coolify-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":true},"entitlements":{},"buildId":"6ae91f3cdc2215c2063d5878:success","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API","count":73},{"language":"default","tag":"API Reference","count":73},{"language":"default","tag":"Resources","count":58},{"language":"default","tag":"Knowledge Base","count":46},{"language":"default","tag":"Services","count":41},{"language":"default","tag":"Applications","count":29},{"language":"default","tag":"Databases","count":23},{"language":"default","tag":"General","count":12},{"language":"default","tag":"Documentation","count":9},{"language":"default","tag":"Get Started","count":9}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"knowledge-base/traefik/wildcard-certificates","slug":"/knowledge-base/traefik/wildcard-certificates","pageMetadata":{"title":"Wildcard SSL Certificates","description":"A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.","og:title":"How to create wildcard SSL certificates with Traefik in Coolify","href":"/knowledge-base/traefik/wildcard-certificates"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`You need to have a domain name and a DNS provider that supports wildcard subdomains.`}),`\n`,_jsxs(_components.li,{children:[`You need to use `,_jsx(_components.a,{href:`https://doc.traefik.io/traefik/https/acme/#dnschallenge`,children:`dnsChallenge`}),` in Traefik to get wildcard certificates from Let’s Encrypt.`]}),`\n`,_jsxs(_components.li,{children:[`You need to use one of the supported DNS `,_jsx(_components.a,{href:`https://doc.traefik.io/traefik/https/acme/#providers`,children:`providers`}),`.`]}),`\n`]}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[`Each provider needs environment variables to be set in the Traefik configuration. You can find the required variables in the `,_jsx(_components.a,{href:`https://doc.traefik.io/traefik/https/acme/#providers`,children:`official documentation`}),`.`]}),_jsxs(_components.p,{children:[`If you need fine-grained token, like with `,_jsx(_components.a,{href:`https://go-acme.github.io/lego/dns/cloudflare/`,children:`Cloudflare`}),`, check the provider configurations.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Setup your wildcard subdomain DNS records, `,_jsx(_components.code,{children:`*.coolify.io`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Go to your Proxy settings (Servers / Proxy menu) and add the following configuration based on your `,_jsx(_components.a,{href:`https://doc.traefik.io/traefik/https/acme/#providers`,children:`providers`}),`. The example will use `,_jsx(_components.code,{children:`Hetzner`}),` as a provider.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`56`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`56`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`version:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '3.8'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`networks:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` coolify:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` external:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`services:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` traefik:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` container_name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` coolify-proxy`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` image:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'traefik:v2.10'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` restart:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` unless-stopped`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` environment:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` HETZNER_API_KEY=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`API`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Ke`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`y`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` extra_hosts:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'host.docker.internal:host-gateway'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` networks:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` coolify`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` ports:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '80:80'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '443:443'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '8080:8080'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` healthcheck:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` test`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'wget -qO- http://localhost:80/ping || exit 1'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` interval:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 4s`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` timeout:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 2s`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` retries:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` volumes:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/var/run/docker.sock:/var/run/docker.sock:ro'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/data/coolify/proxy:/traefik'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` command`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--ping=true'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--ping.entrypoint=http'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--api.dashboard=true'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--api.insecure=false'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--entrypoints.http.address=:80'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--entrypoints.https.address=:443'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--entrypoints.http.http.encodequerysemicolons=true'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--entrypoints.https.http.encodequerysemicolons=true'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--providers.docker.exposedbydefault=false'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--providers.file.directory=/traefik/dynamic/'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--providers.file.watch=true'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--certificatesresolvers.letsencrypt.acme.httpchallenge=true'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=hetzner'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--certificatesresolvers.letsencrypt.acme.dnschallenge.delaybeforecheck=0'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--certificatesresolvers.letsencrypt.acme.storage=/traefik/acme.json'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '--providers.docker=true'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` labels:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.enable=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.routers.traefik.entrypoints=http`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.routers.traefik.middlewares=traefik-basic-auth@file`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.routers.traefik.service=api@internal`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.routers.traefik.tls.certresolver=letsencrypt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.routers.traefik.tls.domains[0].main=coolify.io`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.routers.traefik.tls.domains[0].sans=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`*`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.coolify.io`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.services.traefik.loadbalancer.server.port=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8080`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` -`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` traefik.http.middlewares.gzip.compress=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`]})})}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`You can also set `,_jsx(_components.code,{children:`env_file`}),` instead of `,_jsx(_components.code,{children:`environment`}),` in the example above, but then you need to create a `,_jsx(_components.code,{children:`.env`}),` file with the `,_jsx(_components.code,{children:`HETZNER_API_KEY`}),` variable on the server.`]}),`\n`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`Change `,_jsx(_components.code,{children:`--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=hetzner`}),` to your provider.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Now you have two options to configure your wildcard subdomain for your resources.`}),`\n`,_jsx(Heading,{level:`3`,id:`normal`,children:`Normal`}),`\n`,_jsx(_components.p,{children:`If you would like to use one (wildcard) certificate for all of your resources, you can use this option.`}),`\n`,_jsx(_components.p,{children:`It is useful, because Traefik do not need to generate a new certificate for every resource, so new deployments will be available immediately without waiting for the certificate generation.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`In your application, set your FQDN to a subdomain you would like to use: `,_jsx(_components.code,{children:`https://example.coolify.io`}),`.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.enable`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.rule=Host(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`example.coolify.io`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:\") \u0026\u0026 PathPrefix(`/`)\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.entryPoints=https`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.middlewares=gzip`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.service=\u003cunique_service_name>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.services.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_service_name>.loadbalancer.server.port=80`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.tls=true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.tls.certresolver=letsencrypt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.rule=Host(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`example.coolify.io`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:\") \u0026\u0026 PathPrefix(`/`)\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.entryPoints=http`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.middlewares=redirect-to-https`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`saas`,children:`SaaS`}),`\n`,_jsx(_components.p,{children:`Redirect all subdomains to one application. You can use this option if you want to use Coolify as a SaaS provider.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`In your application, leave the FQDN configuration `,_jsx(_components.code,{children:`empty`}),`.`]}),`\n`,_jsx(_components.li,{children:`Add the following custom label configuration:`}),`\n`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.enable`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.rule=HostRegexp(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`{subdomain:[a-zA-Z0-9-]+}.coolify.io`)\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cunique_router_name>.entryPoints=https`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cunique_router_name>.middlewares=gzip`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cunique_router_name>.service=\u003cunique_service_name>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.services.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cunique_service_name>.loadbalancer.server.port=80`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cunique_router_name>.tls=true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\u003cunique_router_name>.tls.certresolver=letsencrypt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"\u003cunique_router_name>.rule=HostRegexp(`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:\"{subdomain:[a-zA-Z0-9-]+}.coolify.io`)\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.entryPoints=http`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`traefik.http.routers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003cunique_router_name>.middlewares=redirect-to-https`})]}),`\n`]})})}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`traefik.http.routers.\u003cunique_router_name>.tls.certresolver`}),` should be the same as your `,_jsx(_components.code,{children:`certresolver`}),` name in Traefik proxy configuration, by default `,_jsx(_components.code,{children:`letsencrypt`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`traefik.http.services.\u003cunique_service_name>.loadbalancer.server.port`}),` should be the same as your application listens on. Port 80 if you use a static deployment.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`You cannot use both configurations (Normal \u0026 SaaS) at the same time on one\nserver.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Wildcard SSL Certificates","description":"A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.","og:title":"How to create wildcard SSL certificates with Traefik in Coolify","href":"/knowledge-base/traefik/wildcard-certificates"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Configuration","slug":"configuration","depth":2,"children":[{"title":"Normal","slug":"normal","depth":3,"children":[]},{"title":"SaaS","slug":"saas","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"coollabstechnologiesbt","siteName":"Coolify Documentation","title":"How to create wildcard SSL certificates with Traefik in Coolify","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"knowledge-base/traefik/wildcard-certificates.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to create wildcard SSL certificates with Traefik in Coolify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Self-hosting with superpowers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Coolify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Self-hosting with superpowers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6B16ED\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"twitter:url\" content=\"https://twitter.com/coolifyio\">\u003clink data-mint-head rel=\"canonical\" href=\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/knowledge-base/traefik/wildcard-certificates.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\",\"name\":\"Coolify Documentation\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev\"},{\"@type\":\"WebSite\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\",\"name\":\"Coolify Documentation\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs\",\"publisher\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates#webpage\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates\",\"name\":\"Wildcard SSL Certificates\",\"description\":\"A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.\",\"isPartOf\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Traefik\",\"item\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/healthcheck\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wildcard SSL Certificates\",\"item\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates#article\",\"headline\":\"Wildcard SSL Certificates\",\"name\":\"Wildcard SSL Certificates\",\"description\":\"A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates\",\"mainEntityOfPage\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/traefik/wildcard-certificates#webpage\"},\"image\":\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\",\"publisher\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Coolify Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Coolify Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/knowledge-base/traefik/wildcard-certificates.md","siteName":"Coolify Documentation","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://coolify.io/discord","icon":"discord"},{"anchor":"Sponsorship","href":"https://coolify.io/sponsorship","icon":"heart-pulse"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Knowledge Base","groups":[{"group":"General","pages":[{"title":"FAQ","href":"/knowledge-base/faq"},{"title":"Health checks","href":"/knowledge-base/healthchecks"},{"title":"Domains","href":"/knowledge-base/domains"},{"title":"Monitoring","href":"/knowledge-base/monitoring"},{"title":"Environment Variables","href":"/knowledge-base/environment-variables"},{"title":"Persistent Storage","href":"/knowledge-base/persistent-storage"},{"title":"Database Backups","href":"/knowledge-base/backups"},{"title":"DNS Configuration","href":"/knowledge-base/dns-configuration"},{"title":"Drain Logs","href":"/knowledge-base/drain-logs"},{"title":"Commands","href":"/knowledge-base/commands"},{"title":"Add a service","href":"/knowledge-base/add-a-service"},{"title":"Instance Updates","href":"/knowledge-base/instance-updates"}]},{"group":"Resources","pages":[{"title":"Applications","href":"/knowledge-base/applications"},{"title":"Databases","href":"/knowledge-base/databases"}]},{"group":"How-tos","pages":[{"title":"Load Balancing on Hetzner","href":"/knowledge-base/how-to/hetzner-loadbalancing"}]},{"group":"Administration (Self-hosted)","pages":[{"title":"Delete User","href":"/knowledge-base/self-hosted-admin/delete-user"}]},{"group":"Git","pages":[{"group":"GitHub","pages":[{"title":"Integration","href":"/knowledge-base/git/github/integration"},{"title":"GitHub Actions","href":"/knowledge-base/git/github/github-actions"}]},{"group":"Gitlab","pages":[{"title":"Integration","href":"/knowledge-base/git/gitlab/integration"}]},{"group":"Bitbucket","pages":[{"title":"Integration","href":"/knowledge-base/git/bitbucket/integration"}]},{"group":"Gitea","pages":[{"title":"Integration","href":"/knowledge-base/git/gitea/integration"}]}]},{"group":"Server","pages":[{"title":"Introduction","href":"/knowledge-base/server/introduction"},{"title":"Firewall","href":"/knowledge-base/server/firewall"},{"title":"Build Server","href":"/knowledge-base/server/build-server"},{"title":"Multiple Servers","href":"/knowledge-base/server/multiple-servers"},{"title":"OpenSSH","href":"/knowledge-base/server/openssh"},{"title":"Oracle Cloud","href":"/knowledge-base/server/oracle-cloud"},{"title":"Supported Proxy","href":"/knowledge-base/server/proxies"},{"title":"Automated Cleanup","href":"/knowledge-base/server/automated-cleanup"},{"title":"Non-root user","href":"/knowledge-base/server/non-root-user"}]},{"group":"S3","pages":[{"title":"Introduction","href":"/knowledge-base/s3/index"},{"title":"AWS S3","href":"/knowledge-base/s3/aws"},{"title":"Cloudflare R2","href":"/knowledge-base/s3/r2"}]},{"group":"Docker","pages":[{"title":"Docker Swarm","href":"/knowledge-base/docker/swarm"},{"title":"Docker Registry","href":"/knowledge-base/docker/registry"},{"title":"Docker Compose","href":"/knowledge-base/docker/compose"},{"title":"Custom Commands","href":"/knowledge-base/docker/custom-commands"}]},{"group":"Cloudflare","pages":[{"title":"Cloudflare Tunnels","href":"/knowledge-base/cloudflare/tunnels"}]},{"group":"Traefik","pages":[{"title":"Healthcheck","href":"/knowledge-base/traefik/healthcheck"},{"title":"BasicAuth Middleware","href":"/knowledge-base/traefik/basic-auth"},{"title":"Enable Dashboard","href":"/knowledge-base/traefik/dashboard"},{"title":"Dynamic Configurations","href":"/knowledge-base/traefik/dynamic-configurations"},{"title":"Custom SSL Certificates","href":"/knowledge-base/traefik/custom-ssl-certs"},{"title":"Load-balancing","href":"/knowledge-base/traefik/load-balancing"},{"title":"Redirects","description":"A guide to configure redirects with Traefik in Coolify","href":"/knowledge-base/traefik/redirects"},{"title":"Wildcard SSL Certificates","href":"/knowledge-base/traefik/wildcard-certificates"}]}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources"}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/introduction"}]}]},"basePath":"","title":"How to create wildcard SSL certificates with Traefik in Coolify","deploymentId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","buildId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","dynamics":[],"chunks":[]}