55 lines
No EOL
1.7 KiB
Text
55 lines
No EOL
1.7 KiB
Text
# =============================================================================
|
|
# 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
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# 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"
|
|
# -----------------------------------------------------------------------------
|
|
|
|
[[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]]
|
|
# API service
|
|
# Host = "api.example.com"
|
|
# Target = "http://localhost:3001"
|
|
|
|
# [[Mapping]]
|
|
# Admin panel
|
|
# Host = "admin.example.com"
|
|
# Target = "http://localhost:3002" |