20 lines
388 B
Caddyfile
20 lines
388 B
Caddyfile
# Replace gendesign.example.ru with your actual domain.
|
|
# Caddy will auto-issue Let's Encrypt certificate.
|
|
|
|
gendesign.example.ru {
|
|
encode zstd gzip
|
|
|
|
# Frontend (Next.js)
|
|
handle {
|
|
reverse_proxy frontend:3000
|
|
}
|
|
|
|
# Backend API
|
|
handle_path /api/* {
|
|
reverse_proxy backend:8000
|
|
}
|
|
|
|
handle_path /health {
|
|
reverse_proxy backend:8000
|
|
}
|
|
}
|