- Added new endpoints for managing cloud settings under /setting/cloud, including GET, PUT, and POST methods. - Introduced owner verification logic to ensure only team owners can modify settings, utilizing caching for efficiency. - Enhanced data structures for cloud settings responses, including CloudRegion and CloudPageData types. - Refactored existing functions to integrate new owner verification and error handling mechanisms.
28 lines
550 B
YAML
28 lines
550 B
YAML
# Cloud service region presets.
|
|
# Embedded at compile time via go:embed in cloud.go.
|
|
|
|
regions:
|
|
- key: us
|
|
label:
|
|
zh-CN: "美国"
|
|
en-US: "United States"
|
|
api_url: "https://api-us.yao.run"
|
|
default: true
|
|
|
|
- key: cn
|
|
label:
|
|
zh-CN: "中国"
|
|
en-US: "China"
|
|
api_url: "https://api.yaoagents.cn"
|
|
|
|
- key: ap
|
|
label:
|
|
zh-CN: "亚太"
|
|
en-US: "Asia Pacific"
|
|
api_url: "https://api-ap.yao.run"
|
|
|
|
- key: eu
|
|
label:
|
|
zh-CN: "欧洲"
|
|
en-US: "Europe"
|
|
api_url: "https://api-eu.yao.run"
|