Multiple wildcard SSL domains and Appwrite #6258
Replies: 1 comment 2 replies
|
wildcard certs can only be obtained via a dns challenge or installing a certificate yourself, so you would need to add the relevant entries to your traefik config https://doc.traefik.io/traefik/https/acme/#dnschallenge since you are already using cf dns challenge, then just add the extra sni entry (see below) please note, you can't use cloudflare dns proxy on 2nd level subdomains unless you pay in regards routing wildcards, you can just add a hostregexp either as a set of labels or a dynamic file http:
routers:
appwrite-wildcard:
entryPoints:
- http
- https
tls:
certResolver: "letsencrypt"
domains:
- main: "appwrite.domain.com"
sans:
- "*.appwrite.domain.com"
service: appwrite-wildcard
rule: HostRegexp(`^.*\\.appwrite\\.domain\\.com$`)
services:
appwrite-wildcard:
loadbalancer:
servers:
- url: http://appwrite:80this is just an example, but would route all subdomains under appwrite.domain.com to the appwrite service one last note, you will need to make sure your api key also has |
Uh oh!
There was an error while loading. Please reload this page.
How to Automatically Forward
*.appwrite.domain.comtoappwrite.domain.comwith SSL in Coolify?Hey Coolify team and community
I'm currently hosting an AppWrite instance at
appwrite.domain.comusing Coolify, and it's working great with automatic SSL via Cloudflare and the wildcard domain setup fordomain.com.Now I want to take it a step further:
🔹 Goal
Automatically provision SSL for
*.appwrite.domain.com(e.g.,myproject.appwrite.domain.com) and have all these subdomains forward to the existing AppWrite app atappwrite.domain.com.🔹 Current Setup
domain.comas the wildcard domain.🔹 Problem
While
appwrite.domain.comworks out of the box,*.appwrite.domain.comdoesn’t automatically get SSL provisioned.I’d like to avoid having to manually touch the Coolify system more than once — ideally, everything should be automated from the dashboard or with one-time config changes.
🔹 Questions
*.appwrite.domain.comis automatically covered by a wildcard SSL cert?*.appwrite.domain.comwithout manual DNS or system config tweaks each time?*.appwrite.domain.comtraffic to theappwrite.domain.comcontainer without duplicating container definitions?Would love to hear how others solved this — or if there's a recommended pattern for wildcard sub-subdomains like this under a single app!
Thanks in advance 🙏
All reactions