Skip to content

Commit

Permalink
feat: add external-controller-cors can config allow-origins and allow…
Browse files Browse the repository at this point in the history
…-private-network
  • Loading branch information
dongchengjie committed Oct 1, 2024
1 parent 7a86623 commit 9884286
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/modules/config/controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,40 @@
"description": "可以使用RESTful API over HTTPS来控制内核",
"markdownDescription": "可以使用RESTful API over HTTPS来控制内核"
},
"external-controller-pipe": {
"type": "string",
"title": "外部控制器(Windows namedpipe)监听地址",
"description": "从Windows namedpipe访问api接口不会验证secret, 如果开启请自行保证安全问题",
"markdownDescription": "从Windows namedpipe访问api接口不会验证secret, 如果开启请自行保证安全问题"
},
"external-controller-unix": {
"type": "string",
"title": "外部控制器(Unix Socket)监听地址",
"description": "从Unix Socket访问api接口不会验证secret,如果开启请自行保证安全问题(Windows版本大于17063也可以使用,即大于等于1803/RS4版本即可使用)",
"markdownDescription": "从Unix Socket访问api接口不会验证secret,如果开启请自行保证安全问题(Windows版本大于17063也可以使用,即大于等于1803/RS4版本即可使用)"
},
"external-controller-cors": {
"type": "object",
"title": "外部控制器CORS配置",
"description": "跨域资源共享(CORS)配置",
"markdownDescription": "跨域资源共享(CORS)配置",
"properties": {
"allow-origin": {
"type": "array",
"title": "允许的来源",
"description": "允许的来源",
"markdownDescription": "允许的来源",
"default": ["\"*\""]
},
"allow-private-network": {
"type": "boolean",
"title": "允许私有地址",
"description": "允许私有地址",
"markdownDescription": "允许私有地址",
"default": true
}
}
},
"external-ui": {
"type": "string",
"title": "外部用户界面路径(默认:工作目录/ui)",
Expand Down

0 comments on commit 9884286

Please sign in to comment.