Gateway & domains
The Gateway and Domain & SSL modules are the heart of launching customer sites. Gateway writes Caddy configuration from templates; Domain & SSL handles DNS verification and certificates. Together they make each subscriber’s product available over HTTPS.
Component flow
Domain record → DNS verify → Build Caddy config → Caddy reload → HTTPS health check
(A record evidential) (Gateway) (Gateway) (Caddy/Let's Encrypt)
Gateway (Caddy integration)
When Gateway → EnableGateway and EnableCaddyIntegration are on:
- Reads
CaddyExecutablePath,CaddyConfigFolder,CaddyfileLocation. - Uses
WebsiteTemplateLocationto generate a reverse snippet per site. - Writes the config and reloads Caddy.
| Gateway Setting | Purpose |
|---|---|
EnableGateway |
Master switch for gateway execution |
EnableCaddyIntegration |
Generate Caddy configs on change |
CaddyExecutablePath |
Location of the caddy binary |
CaddyConfigFolder |
Directory for per-site configs |
CaddyfileLocation |
Main aggregator Caddyfile |
WebsiteTemplateLocation |
Template used to emit a site block |
PlatformServerIP |
Public IP used for DNS A records + verification |
Website template
Each product site is emitted from WebsiteTemplateLocation, byte-inserted into the context. Template identifiers reference the installed product so the reverse snippet is correct.
SSL certificates
Certificates are issued automatically via Caddy’s Let’s Encrypt integration with zero manual steps:
- Gateway emits the site’s router entry to its Caddyfile.
- Caddy reloads and automatically provisions SSL for the domain via Let’s Encrypt.
- Certificates renew automatically before expiry.
Activation sub-flow
The gateway activation job (see onboarding):
- Reads
PlatformServerIPto confirm DNS resolution. ActivationHealthTimeoutSecondsbounds the HTTPS health check.- Retries up to
MaximumActivationRetriesatActivationRetryIntervalMinutes. - Flips the site to
Activeonce verification passes.
| Activation Setting | Purpose |
|---|---|
EnableAutomaticActivation |
Auto-activate Ready sites |
ActivationRetryIntervalMinutes |
Delay between retries |
MaximumActivationRetries |
Cap on attempts |
ActivationHealthTimeoutSeconds |
HTTPS verification timeout |
DNS verification
- Customers point an
Arecord atPlatformServerIP. - Verification only unlocks when the domain resolves to that IP.
- Verify timeouts scale with DNS propagation (normally minutes).
Related
- Platform settings reference — Gateway + Gateway Activation
- Customer onboarding — DNS step & automatic activation
- Architecture — reverse proxy & infrastructure