phase 1
This commit is contained in:
31
nginx/Caddyfile
Normal file
31
nginx/Caddyfile
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user