# ============================================================================= # PROXY CONFIGURATION # ============================================================================= # This configuration controls the reverse proxy middleware that forwards # requests to backend services based on hostname mappings. # ============================================================================= # ----------------------------------------------------------------------------- # CORE SETTINGS # ----------------------------------------------------------------------------- [Core] # Enable or disable the proxy middleware Enabled = true # Maximum body size in MB (default: 10MB if not specified) MaxBodySizeMB = 10 # ----------------------------------------------------------------------------- # TIMEOUT SETTINGS # ----------------------------------------------------------------------------- [Timeouts] # WebSocket connection timeout in milliseconds WebSocketTimeoutMs = 5000 # Upstream HTTP request timeout in milliseconds UpstreamTimeoutMs = 30000 # ----------------------------------------------------------------------------- # PROXY MAPPINGS # ----------------------------------------------------------------------------- # Map hostnames to backend service URLs # Format: "hostname" = "backend_url" # Optional: AllowedMethods = ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH", "TRACE", "CONNECT"] # If AllowedMethods is not specified, defaults to ["GET", "HEAD", "POST", "PUT", "OPTIONS"] # ----------------------------------------------------------------------------- [[Mapping]] # Media server Host = "media.example.com" Target = "http://192.168.1.100:8096" [[Mapping]] # Music streaming service Host = "music.example.com" Target = "http://192.168.1.100:4533" [[Mapping]] # Git repository Host = "git.example.com" Target = "http://192.168.1.100:3000" [[Mapping]] # Gallery service with DELETE method enabled Host = "gallery.caileb.com" Target = "http://192.168.1.100:8080" AllowedMethods = ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS"] # [[Mapping]] # API service with specific methods # Host = "api.example.com" # Target = "http://localhost:3001" # AllowedMethods = ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"] # [[Mapping]] # Admin panel (read-only) # Host = "admin.example.com" # Target = "http://localhost:3002" # AllowedMethods = ["GET", "HEAD", "OPTIONS"]