Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
c8e5455d
Commit
c8e5455d
authored
Jan 05, 2026
by
yangjianbo
Browse files
chore(配置): 更新上游白名单默认值
新增 Kimi/BigModel/Minimax 官方域名到 allowlist 保持示例配置与默认值一致
parent
f8e7255c
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/config/config.go
View file @
c8e5455d
...
@@ -413,6 +413,9 @@ func setDefaults() {
...
@@ -413,6 +413,9 @@ func setDefaults() {
viper
.
SetDefault
(
"security.url_allowlist.upstream_hosts"
,
[]
string
{
viper
.
SetDefault
(
"security.url_allowlist.upstream_hosts"
,
[]
string
{
"api.openai.com"
,
"api.openai.com"
,
"api.anthropic.com"
,
"api.anthropic.com"
,
"api.kimi.com"
,
"open.bigmodel.cn"
,
"api.minimaxi.com"
,
"generativelanguage.googleapis.com"
,
"generativelanguage.googleapis.com"
,
"cloudcode-pa.googleapis.com"
,
"cloudcode-pa.googleapis.com"
,
"*.openai.azure.com"
,
"*.openai.azure.com"
,
...
...
deploy/config.example.yaml
View file @
c8e5455d
...
@@ -41,6 +41,9 @@ security:
...
@@ -41,6 +41,9 @@ security:
upstream_hosts
:
upstream_hosts
:
-
"
api.openai.com"
-
"
api.openai.com"
-
"
api.anthropic.com"
-
"
api.anthropic.com"
-
"
api.kimi.com"
-
"
open.bigmodel.cn"
-
"
api.minimaxi.com"
-
"
generativelanguage.googleapis.com"
-
"
generativelanguage.googleapis.com"
-
"
cloudcode-pa.googleapis.com"
-
"
cloudcode-pa.googleapis.com"
-
"
*.openai.azure.com"
-
"
*.openai.azure.com"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment