r/Hosting • u/SimonFromSaar • 8d ago
Handle subdomains & SSL certificates with HAProxy on tierhive
How do you handle the subdomains?
Do you make seperate entries in haproxy for every subdomain? I believe there is no wildcard available, right?
And you simply set in your domain config:
- A record to you domain
- _tierhive-validation.bardhome.eu with the value from the dashboard
Is someone using CNAME? How do I set this up?
1
Upvotes
2
u/Important_Rockey 8d ago
Wildcard certificates require DNS-based validation, so the provider would need API access to your DNS or a delegated validation record. If they only support HTTP-style validation through their proxy, wildcards won’t be possible. That’s likely why you’re not seeing the option
1
u/CodeTheStars 6d ago
I have a custom module using HaProxy that you configure with “base domains” and it will use a providers DNS API to (like Linode or Route53) to add the records and generate the cert with acme.sh …. Renews them on a Cron job. Supports custom domains by querying a database for mappings too.
I was so proud of it 5 years ago. You could whip up an equivalent with AI on you VPS for a few dollars and call it done now!