Domains
Configure domains for your applications with flexible SSL options
Blossom makes it easy to configure domains for your applications. With a Domain, you can serve your application through your own domain name (e.g., myapp.com) instead of using the generated Blossom managed URL.
A static site takes a CNAME to
sites.onblsm.page instead; its HTTPS comes from the CDN, so the modes below
don’t apply.
SSL Modes
Blossom offers four SSL modes for your domains:
-
Automated HTTPS - Automatically obtains and manages SSL certificates through Let’s Encrypt. This is the option most users should start with.
-
Self-signed SSL - Useful behind a CDN that accepts a self-signed origin certificate, such as Cloudflare Full mode. Blossom manages that certificate for CDN-to-origin traffic; it is not intended for direct browser trust.
-
HTTP Only - For when SSL is handled by your CDN and needs an HTTP origin. For example, Cloudflare Flexible SSL or CloudFront.
-
Wildcard HTTPS - For wildcard domains like
*.example.com. Requires a configured DNS provider for automatic certificate management. The credentials are used to create a DNS record, validate, and delete the DNS record immediately.
Quick Setup
- Navigate to the Environment’s Domains section
- Click “Add New Domain”
- Enter your domain name (e.g.,
myapp.com) - Select your preferred SSL mode
- For wildcard domains, select a DNS provider
- Configure DNS with the target Blossom displays
CLI Setup
You can also manage domains with the Blossom CLI:
blossom dns_provider:types
blossom dns_provider:list
blossom dns_provider:init
dns_provider.yml:
dns_provider:
name: production-cloudflare
provider_type: cloudflare
credentials:
api_token: ${CLOUDFLARE_API_TOKEN}
# For Amazon Route 53, use an existing AWS cloud provider instead:
# provider_type: route53
# cloud_provider_id: cloud_provider-100
blossom dns_provider:create --data dns_provider.yml
blossom domain:init
domain.yml:
domain:
environment_id: environment-100 # replace with your environment id
dns_name: www.example.com
mode: https_automated
main: false
# For Wildcard HTTPS, use a wildcard DNS name and choose a DNS provider.
# dns_name: "*.example.com"
# mode: dns_wildcard
# dns_provider_id: dns_provider-100
blossom domain:create --data domain.yml
blossom domain:list --environment environment-100
blossom domain:show --id domain-100
Inline data works well for automation:
blossom domain:create --data '{"domain":{"environment_id":"environment-100","dns_name":"www.example.com","main":true}}'
Blossom infers the SSL mode from the domain name. Regular names use Automated
HTTPS. Wildcard names such as *.example.com use Wildcard HTTPS.
Set mode only when you need one of the explicit alternatives:
self_signedhttp_only
Wildcard HTTPS requires dns_provider_id. Use blossom dns_provider:list to
find an existing provider, or create one with blossom dns_provider:create.
DNS Configuration
After adding the Domain, create the DNS record Blossom displays. The destination can change as Blossom keeps the Domain connected to the Environment, so use the current Product guidance rather than an address copied from elsewhere.
Troubleshooting
If a Domain needs attention, inspect its TLS state, Environment logs, and Activity. See Troubleshooting.
Related Documentation
- For direct wildcard SSL configuration, see Wildcard Domains
- For CDN-based wildcard SSL configuration, see CDN Wildcard Domains