chore: initial commit of ai site platform

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-07-31 10:31:17 +08:00
commit 4ca82fb58a
203 changed files with 45745 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
routes:
- id: platform-api
uri: /api/v1/*
name: platform-api
methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]
upstream:
type: roundrobin
nodes:
"host.docker.internal:8888": 1
plugins:
cors:
allow_origins: "**"
allow_methods: "**"
allow_headers: "**"
limit-req:
rate: 50
burst: 30
key_type: var
key: remote_addr
rejected_code: 429
- id: ai-service
uri: /ai/*
name: ai-service
methods: ["GET", "POST", "OPTIONS"]
upstream:
type: roundrobin
nodes:
"host.docker.internal:8001": 1
plugins:
cors:
allow_origins: "**"
allow_methods: "**"
allow_headers: "**"
proxy-rewrite:
regex_uri: ["^/ai/(.*)", "/$1"]
#END