Custom Domains & HTTPS

Slasha comes with a built-in Caddy reverse proxy that handles routing public HTTP/HTTPS traffic directly to your running web containers.

Platform Subdomain Routing

When you set up your Slasha server, you define a base SLASHA_PLATFORM_DOMAIN (e.g. slasha.example.com). By default, every app you create is instantly assigned a platform subdomain based on its slug.

For example, an app named my-cool-api will be automatically routed and accessible at:
https://my-cool-api.slasha.example.com

Custom Domains

You can attach any custom domain to your application using the dashboard or via your terminal. For detailed CLI usage, see the CLI Domains Reference.

When a custom domain is added, Slasha calls Caddy's dynamic admin API to add the corresponding route.Note: If you add a custom domain, it takes precedence. The app will be reachable on both the custom domain and the platform subdomain.

Automatic TLS/HTTPS

Caddy automatically issues and manages free Let's Encrypt or ZeroSSL TLS certificates for all of your configured domains (both platform subdomains and custom domains). There is no need for manual cert renewal or complex configuration.

Configuring DNS & Troubleshooting

To use a custom domain, you must point your domain's DNS A record (or CNAME) at your server's public IP address.

Troubleshooting Certs: Once DNS propagates, Caddy will automatically attempt the HTTP-01 challenge to secure your site with HTTPS.
  • If you visit the site immediately after adding the domain, you might see an SSL error for a few seconds while Caddy negotiates the certificate.
  • If it fails consistently, double-check that your server's ports 80 and 443 are open to the internet, and that your DNS has fully propagated globally.