You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
tag: "${CLUSTER_TAG:-voitrans-a11}" #服务集群标签,按 .env 的 CLUSTER_TAG 隔离不同部署
|
|
type: "api"
|
|
version: 1.0
|
|
exte: #RPCX 相关配置
|
|
Port: 7005
|
|
Addr: 127.0.0.1:7005
|
|
ETCDServers: ["${ETCD_SERVERS:-etcd:2379}"]
|
|
UpdateInterval: 5
|
|
|
|
sys:
|
|
log:
|
|
FileName: "./log/api.log"
|
|
Loglevel: 5
|
|
MaxAgeTime: 7
|
|
IsDebug: ${LOG_DEBUG:-false}
|
|
mysql: #业务库
|
|
MySQLDsn: ${DB_ADMIN_DSN:-}
|
|
postgres: #公共库
|
|
Dsn: ${DB_DEVICE_DSN:-}
|
|
ReadDsn: ${DB_DEVICE_READ_DSN:-}
|
|
MaxPoolSize: 5
|
|
redis:
|
|
Addr: ["${REDIS_ADDR:-redis:6379}"]
|
|
Password: ${REDIS_PASSWORD:-}
|
|
DB: ${REDIS_DB:-1}
|
|
KeyPrefix: ${REDIS_KEY_PREFIX:-EAIMAR}
|
|
translate: #Azure Translator,按需填写
|
|
Key: "${AZURE_TRANSLATE_KEY:-}"
|
|
Region: "eastasia"
|
|
Endpoint: "https://api.cognitive.microsofttranslator.com"
|
|
email:
|
|
EmailType: 1
|
|
FromEmail: liwei@yunqiinnovation.com
|
|
FromName: DeepSound
|
|
Password: ""
|
|
|
|
modules:
|
|
api:
|
|
TokenKey: "${GATEWAY_TOKEN_KEY:-}"
|
|
AdninAccount: ${API_ADMIN_ACCOUNT:-admin}
|
|
AdninPassword: "${API_ADMIN_PASSWORD:-}"
|
|
ConsolePort: 8080
|
|
SiteName: "${API_SITE_NAME:-Voitrans}" #后台站点名称(不同环境可区分)
|
|
CurrencyType: ${API_CURRENCY_TYPE:-0} #0=人民币(元) 1=美元(USD)
|
|
|