chore: initial commit of ai site platform
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
38
gateway/apisix/apisix.yaml
Normal file
38
gateway/apisix/apisix.yaml
Normal 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
|
||||
14
gateway/apisix/config.yaml
Normal file
14
gateway/apisix/config.yaml
Normal 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
|
||||
Reference in New Issue
Block a user