Domain
Learn how to set up custom domains for your Piglet Run services.
Overview
Configure custom domains for:
- Main Application: Your primary domain
- Subdomains: Service-specific subdomains
- Multiple Domains: Support multiple domains
Quick Setup
Add a custom domain:
DNS Configuration
Required DNS Records
Point your domain to Piglet Run:
| Type | Name | Value |
|---|---|---|
| A | @ | Your server IP |
| A | www | Your server IP |
| CNAME | code | @ |
| CNAME | jupyter | @ |
Using Cloudflare
Add Custom Domain
Primary Domain
Subdomain for Services
Domain Management
List Domains
Remove Domain
Set Primary
Configuration
Domain settings in /etc/piglet/domains.yml:
Verify Domain
Check domain configuration:
Next Steps
- Configure SSL for HTTPS
- Learn about Nginx Configuration