wp on webui

This commit is contained in:
2026-02-02 23:37:11 +01:00
parent ce24e0caa0
commit 5e1cb64a81
8 changed files with 278 additions and 99 deletions

View File

@@ -1,7 +1,8 @@
# Lovdata Chat Reverse Proxy Configuration
# Using HTTP for local development (no SSL warnings)
# Main web interface
localhost {
# Main web interface - HTTP only for development
http://localhost {
# API endpoints for session management
handle /api/* {
uri strip_prefix /api
@@ -10,18 +11,54 @@ localhost {
# Session-specific routing - proxy to session manager for dynamic routing
handle /session/{session_id}* {
# Keep the full path including session ID for routing
reverse_proxy session-manager:8000
}
# Static files and main interface
handle /* {
try_files {path} {path}/ /index.html
file_server
# OpenCode SPA runtime requests - route based on session cookie
handle /global/* {
reverse_proxy session-manager:8000
}
handle /assets/* {
reverse_proxy session-manager:8000
}
handle /provider/* {
reverse_proxy session-manager:8000
}
handle /provider {
reverse_proxy session-manager:8000
}
handle /project {
reverse_proxy session-manager:8000
}
handle /path {
reverse_proxy session-manager:8000
}
handle /find/* {
reverse_proxy session-manager:8000
}
handle /file {
reverse_proxy session-manager:8000
}
handle /file/* {
reverse_proxy session-manager:8000
}
# Health check
handle /health {
reverse_proxy session-manager:8000
}
# Static files and main interface (fallback)
handle /* {
try_files {path} {path}/ /index.html
file_server
}
}