Custom Domains
With custom domains, your applications can use professional URLs (like app.yourcompany.com) instead of auto-assigned test domains.
Setup Steps
Section titled “Setup Steps”1. Get a Domain
Section titled “1. Get a Domain”If you don’t have a domain yet, you can purchase one from providers such as:
- Namecheap
- Cloudflare Registrar
- Google Domains
- GoDaddy
- Gandi
2. Configure DNS Records
Section titled “2. Configure DNS Records”In your DNS provider’s control panel, add records pointing to your VPS IP:
Root Domain (example.com)
Section titled “Root Domain (example.com)”Type: AName: @Value: 123.456.789.0 (your VPS IP)TTL: 3600Subdomain (app.example.com)
Section titled “Subdomain (app.example.com)”Type: AName: appValue: 123.456.789.0 (your VPS IP)TTL: 3600WWW Domain
Section titled “WWW Domain”Type: CNAMEName: wwwValue: example.comTTL: 36003. Configure the Domain in Piora
Section titled “3. Configure the Domain in Piora”- Go to the application settings page
- Click the “Domains” section
- Enter your domain (e.g.,
app.example.com) - Click “Add”
Piora will automatically:
- Create routing rules in Traefik
- Request a Let’s Encrypt SSL certificate
- Set up HTTP to HTTPS redirection
Multiple Domain Support
Section titled “Multiple Domain Support”Each application can have multiple domains configured, for example:
example.com(root domain)www.example.com(www subdomain)app.example.com(app subdomain)
All domains point to the same application, each with its own SSL certificate.
Using Cloudflare
Section titled “Using Cloudflare”If you use Cloudflare to manage DNS:
Recommended Setup
Section titled “Recommended Setup”- Set Cloudflare’s Proxy status to “DNS Only” (gray cloud)
- Let Piora’s Traefik handle SSL directly
Cloudflare + Piora SSL Modes
Section titled “Cloudflare + Piora SSL Modes”| Cloudflare SSL Mode | Description | Recommendation |
|---|---|---|
| Off | No SSL | Not recommended |
| Flexible | Cloudflare to server uses HTTP | Not recommended |
| Full | Allows self-signed certificates | Acceptable |
| Full (Strict) | Requires valid certificates | Recommended |
Wildcard Domains
Section titled “Wildcard Domains”If you need to route multiple subdomains to different applications:
Type: AName: *Value: 123.456.789.0Then configure the corresponding subdomain in each application.
Troubleshooting
Section titled “Troubleshooting”Domain Not Accessible
Section titled “Domain Not Accessible”- Verify DNS records have propagated:
dig app.example.comor use an online DNS checker - Confirm ports 80 and 443 are open on your VPS
- Confirm Traefik is running normally
SSL Certificate Request Failed
Section titled “SSL Certificate Request Failed”- DNS must correctly point to your VPS IP
- Port 80 must be open (required for Let’s Encrypt HTTP-01 validation)
- Ensure the domain isn’t already used by another SSL configuration
# Check DNS resolutiondig +short app.example.com# Should return your VPS IP
# Test portcurl -I http://app.example.com