This commit is contained in:
2026-01-18 19:07:20 +01:00
parent 93da0b117e
commit f76328b621
7 changed files with 532 additions and 7 deletions

31
nginx/Caddyfile Normal file
View File

@@ -0,0 +1,31 @@
# 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
}
}