Massive v2 rewrite
This commit is contained in:
parent
1025f3b523
commit
5f1328f626
77 changed files with 28105 additions and 3542 deletions
|
|
@ -12,6 +12,9 @@
|
|||
# Enable or disable the proxy middleware
|
||||
Enabled = true
|
||||
|
||||
# Maximum body size in MB (default: 10MB if not specified)
|
||||
MaxBodySizeMB = 10
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# TIMEOUT SETTINGS
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
@ -27,6 +30,8 @@ UpstreamTimeoutMs = 30000
|
|||
# -----------------------------------------------------------------------------
|
||||
# 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]]
|
||||
|
|
@ -44,12 +49,20 @@ Target = "http://192.168.1.100:4533"
|
|||
Host = "git.example.com"
|
||||
Target = "http://192.168.1.100:3000"
|
||||
|
||||
# [[Mapping]]
|
||||
# API service
|
||||
# Host = "api.example.com"
|
||||
# Target = "http://localhost:3001"
|
||||
[[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]]
|
||||
# Admin panel
|
||||
# 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"
|
||||
# Target = "http://localhost:3002"
|
||||
# AllowedMethods = ["GET", "HEAD", "OPTIONS"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue