init: Initial commit

This commit is contained in:
Björn Benouarets
2026-02-05 18:37:35 +01:00
commit 31f5b4081a
25 changed files with 1759 additions and 0 deletions

57
gateway.yaml Normal file
View File

@@ -0,0 +1,57 @@
gateway:
host: "0.0.0.0"
port: 8080
features:
- request_id
- real_ip
- logger
proxies:
- id: "secnex-dev"
host: "dev.secnex.io"
target: "http://localhost:3003"
apis:
- id: "secnex-dev"
target: "https://httpbin.org"
- id: "secnex-public"
target: "https://httpbin.org"
routes:
- id: "secnex-dev"
path: "/api/v1/dev/*"
strip_prefix:
enabled: true
prefix: "/api/v1/dev"
security:
auth:
enabled: true
type: "api_key"
header: "X-Api-Key"
path:
include: []
exclude: []
waf:
enabled: true
methods: ["*"]
ip_addresses:
allow:
- "127.0.0.1"
block:
- "127.0.0.2"
- id: "secnex-public"
path: "/api/v1/public/*"
strip_prefix:
enabled: true
prefix: "/api/v1/public"
security:
auth:
enabled: false
type: "session"
header: "Authorization"
path:
include: []
exclude: []
waf:
enabled: true
methods: ["GET"]