Wildcard for 3rd level domains
Hi! Here is what I got
Current Setup
- Rails application with implemented user subdomain functionality
- Kamal 2 deployment with Thruster reverse proxy
- DNS records configured for wildcard domain
- Current deploy.yml configuration:
proxy:
ssl: true
host: mysite.com
Goal Enable support for user-specific subdomains in the format:
name.mysite.com
another_name.mysite.com
What is the correct approach to handle wildcard subdomains with Kamal/Thruster?
Option 1: Remove host from deploy.yml completely (concerns about SSL certificate compatibility)
Option 2: Use wildcard notation '*.mysite.com'
Option 3: There is no such possibility, go back to nginx/traefik and suffer.
Kamal version: 2.2.2 Rails version: 8.0.0.beta1 Thruster version: 0.1.8
Related to https://github.com/basecamp/kamal/pull/969.
@Wolwer1nE Can I know what you did in the end?
+1
Would be very nice if automatic ssl provisioning for arbitrary subdomains would work with kamal. Works out of the box with traefik and my current docker compose setup.
Option 2 works well for me. ssl: false in my case.
My app is configured with Hetzner servers, a load balancer, and a Cloudflare certificate.
In that case traffic leaves your server unencrypted @hiendinhngoc , right?