chore: initial commit of ai site platform

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-07-31 10:19:22 +08:00
commit 6366859bb3
222 changed files with 47313 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

View File

@@ -0,0 +1,14 @@
apisix:
node_listen: 9080
enable_ipv6: false
deployment:
role: data_plane
role_data_plane:
config_provider: yaml
plugin_attr:
prometheus:
export_addr:
ip: 0.0.0.0
port: 9091