license: Add MIT license

This commit is contained in:
Björn Benouarets
2026-02-05 23:59:17 +01:00
parent 30adf0c701
commit 137be3e1e0
8 changed files with 611 additions and 295 deletions

View File

@@ -2,25 +2,36 @@ gateway:
host: "0.0.0.0"
port: 8080
features:
- host
- request_id
- real_ip
- logger
proxies:
- id: "proxy-id"
host: "example.com"
target: "http://backend:3000"
hosts:
- id: "host-001"
name: "host-001"
domain: "localhost:8080"
- id: "host-002"
name: "host-002"
domain: "api.deinserver.co"
targets:
- id: "target-001"
name: "target-001"
url: "https://httpbin.org"
apis:
- id: "api-id"
target: "https://api.example.com"
- id: "api-001"
host: "host-001"
target: "target-001"
routes:
- id: "route-id"
path: "/api/v1/*"
- id: "route-001"
api: "api-001"
path: "/api/v1/public/*"
strip_prefix:
enabled: true
prefix: "/api/v1"
prefix: "/api/v1/public"
security:
auth:
enabled: true
@@ -31,4 +42,4 @@ routes:
exclude: []
waf:
enabled: true
methods: ["GET", "POST"]
methods: ["GET", "POST"]