#atom

Subtitle:

Setting up and managing domain divisions for distinct AI service endpoints


Core Idea:

Subdomain configuration creates dedicated access points for each AI service in your stack, providing clean URLs, security isolation, and improved organization through DNS and web server settings.


Key Principles:

  1. Service Segregation:
    • Each AI component receives its own subdomain for independent access and security boundaries.
  2. Consistent Naming:
    • Follow logical naming patterns that reflect service purpose and function.
  3. Unified SSL Management:
    • Apply consistent certificate issuance and renewal across all subdomains.

Why It Matters:


How to Implement:

  1. Plan Subdomain Structure:
Primary domain: yourdomain.com

AI service subdomains:
- n8n.yourdomain.com (automation)
- supabase.yourdomain.com (database)
- openwebui.yourdomain.com (chat interface)
- flowise.yourdomain.com (flow-based AI)
  1. Configure DNS Records:
Add A records in your DNS provider's dashboard:

Type: A Record
Name: n8n
Value: [Your Server IP]
TTL: 3600

(Repeat for each subdomain)
  1. Set Up Reverse Proxy:
Configure Caddy, Nginx, or similar to route traffic:

n8n.yourdomain.com {
  reverse_proxy localhost:5678
}

supabase.yourdomain.com {
  reverse_proxy localhost:3000
}

Example:

# 1. DNS Configuration (at your registrar/DNS provider)
Create A records pointing to server IP 203.0.113.10:
- n8n.automator.ai → 203.0.113.10
- supabase.automator.ai → 203.0.113.10
- openwebui.automator.ai → 203.0.113.10
- flowise.automator.ai → 203.0.113.10

# 2. Environment Variable Configuration
CADDY_N8N_HOSTNAME=n8n.automator.ai
CADDY_SUPABASE_HOSTNAME=supabase.automator.ai
CADDY_OPENWEBUI_HOSTNAME=openwebui.automator.ai
CADDY_FLOWISE_HOSTNAME=flowise.automator.ai
CADDY_EMAIL=admin@automator.ai

# 3. Caddy Automatic Configuration
# (The Local AI Package uses these variables to set up Caddy)

Connections:


References:

  1. Primary Source:
    • DNS Provider Documentation
  2. Additional Resources:
    • Caddy Multi-domain Configuration Guide
    • Let's Encrypt Wildcard Certificate Documentation

Tags:

#subdomains #dns #web-server #configuration #urls #networking #infrastructure #https


Connections:


Sources: