Skip to content

Custom Domains

With custom domains, your applications can use professional URLs (like app.yourcompany.com) instead of auto-assigned test domains.

If you don’t have a domain yet, you can purchase one from providers such as:

  • Namecheap
  • Cloudflare Registrar
  • Google Domains
  • GoDaddy
  • Gandi

In your DNS provider’s control panel, add records pointing to your VPS IP:

Type: A
Name: @
Value: 123.456.789.0 (your VPS IP)
TTL: 3600
Type: A
Name: app
Value: 123.456.789.0 (your VPS IP)
TTL: 3600
Type: CNAME
Name: www
Value: example.com
TTL: 3600
  1. Go to the application settings page
  2. Click the “Domains” section
  3. Enter your domain (e.g., app.example.com)
  4. Click “Add”

Piora will automatically:

  • Create routing rules in Traefik
  • Request a Let’s Encrypt SSL certificate
  • Set up HTTP to HTTPS redirection

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.

If you use Cloudflare to manage DNS:

  1. Set Cloudflare’s Proxy status to “DNS Only” (gray cloud)
  2. Let Piora’s Traefik handle SSL directly
Cloudflare SSL ModeDescriptionRecommendation
OffNo SSLNot recommended
FlexibleCloudflare to server uses HTTPNot recommended
FullAllows self-signed certificatesAcceptable
Full (Strict)Requires valid certificatesRecommended

If you need to route multiple subdomains to different applications:

Type: A
Name: *
Value: 123.456.789.0

Then configure the corresponding subdomain in each application.

  1. Verify DNS records have propagated: dig app.example.com or use an online DNS checker
  2. Confirm ports 80 and 443 are open on your VPS
  3. Confirm Traefik is running normally
  1. DNS must correctly point to your VPS IP
  2. Port 80 must be open (required for Let’s Encrypt HTTP-01 validation)
  3. Ensure the domain isn’t already used by another SSL configuration
Terminal window
# Check DNS resolution
dig +short app.example.com
# Should return your VPS IP
# Test port
curl -I http://app.example.com