chore: initial commit of ai site platform
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
16
gateway/internal/config/config.go
Normal file
16
gateway/internal/config/config.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package config
|
||||
|
||||
type Config struct {
|
||||
Name string `json:",optional"`
|
||||
Host string `json:",default=0.0.0.0"`
|
||||
Port int `json:",default=8180"`
|
||||
PlatformURL string `json:",default=http://127.0.0.1:8888"`
|
||||
AIURL string `json:",default=http://127.0.0.1:8001"`
|
||||
RateLimitPerMin int `json:",default=240"`
|
||||
ProxyTimeoutSec int `json:",default=60"`
|
||||
CorsEnable bool `json:",default=true"`
|
||||
// 与中台 Auth.AccessSecret 保持一致
|
||||
JWTSecret string `json:",optional"`
|
||||
// 网关预检 JWT;AI 生成可匿名
|
||||
JWTEnable bool `json:",default=true"`
|
||||
}
|
||||
Reference in New Issue
Block a user