Files
PaintPlus/Caddyfile
T
Claude 122b4ce326 Update nginx config and add Caddy2 support
- Fixed nginx.conf to proxy all API routes (/patches, /generate, /health, /docs)
- Changed frontend port to 3080 in docker-compose.yml
- Added Caddyfile for Caddy2 reverse proxy configuration
- Supports both FQDN and IP:port configurations
2026-01-24 14:20:41 +00:00

55 lines
1.0 KiB
Caddyfile

# Caddy 2 Configuration for AI Photo Edit
# Replace with your actual domain
ai-photo-edit.yourdomain.com {
# Frontend - serves the React app
reverse_proxy localhost:3080
# API routes - proxy to backend
handle /projects* {
reverse_proxy localhost:8000
}
handle /edits* {
reverse_proxy localhost:8000
}
handle /patches* {
reverse_proxy localhost:8000
}
handle /generate* {
reverse_proxy localhost:8000
}
handle /health {
reverse_proxy localhost:8000
}
handle /docs {
reverse_proxy localhost:8000
}
handle /openapi.json {
reverse_proxy localhost:8000
}
}
# Alternative: Use IP:Port format (no domain)
# :8080 {
# reverse_proxy localhost:3080
#
# handle /projects* {
# reverse_proxy localhost:8000
# }
# handle /edits* {
# reverse_proxy localhost:8000
# }
# handle /patches* {
# reverse_proxy localhost:8000
# }
# handle /generate* {
# reverse_proxy localhost:8000
# }
# }