Files
lovdata-chat/nginx/Caddyfile
2026-01-18 19:07:20 +01:00

31 lines
850 B
Caddyfile

# Lovdata Chat Reverse Proxy Configuration
# Main web interface
localhost {
# API endpoints for session management
handle /api/* {
uri strip_prefix /api
reverse_proxy session-manager:8000
}
# Session-specific routing - dynamically route to containers
handle /session/{session_id}* {
uri strip_prefix /session/{session_id}
# This will be handled by dynamic routing in the session manager
reverse_proxy session-manager:8000 {
# The session manager will return the actual container port
# This is a simplified version for development
}
}
# Static files and main interface
handle /* {
try_files {path} {path}/ /index.html
file_server
}
# Health check
handle /health {
reverse_proxy session-manager:8000
}
}