First-class support for DNS Challenge (Cloudflare) in Proxy settings #8987
markdudov
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
|
The Proxy configurations are editable. It is already possible to edit them to your liking such as changing to a DNS challange. There are users who have already done so. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🚀 The Problem Statement
Currently, Coolify defaults to HTTP-01 validation for Let's Encrypt certificates. This method fails when:
The current manual workaround (editing docker-compose.yml of the proxy) is fragile and gets overwritten or breaks easily during updates.
🛠 Proposed Implementation (The "How")
1. UI Changes (Server > Proxy > Configuration)
Add a new section called "SSL Validation Method":
Radio Buttons:
Conditional Fields (visible only if DNS-01 is selected):
2. Backend Logic (Automation)
When the user clicks "Save", Coolify should automate the following:
Credential Management:
Save the API Token securely in the database (encrypted) and map it as an internal environment variable for the proxy container (e.g.,
CF_DNS_API_TOKEN).Dynamic Compose Generation:
Automatically update the Proxy's
docker-compose.yml:Cleanup:
Automatically disable/remove the
--certificatesresolvers.letsencrypt.acme.httpchallengeflags to prevent conflicts.3. Execution Flow
docker-compose up -d --force-recreatefor the proxy._acme-challengeTXT record.💎 User Benefits
Beta Was this translation helpful? Give feedback.
All reactions