区分环境
This commit is contained in:
38
apps/gateway/etc/gateway-api.dev.yaml
Normal file
38
apps/gateway/etc/gateway-api.dev.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
Name: gateway-api
|
||||
Host: 0.0.0.0
|
||||
Port: 10001
|
||||
DataSource: "tianyuanapi:g3h98u0291j@tcp(127.0.0.1:3307)/tianyuanapi?charset=utf8mb4&parseTime=True&loc=Local"
|
||||
AuthJWT:
|
||||
AccessSecret: "Mf5Xph3PoyKzVpRw0Zy1+X4uR/tM7JvGMEV/5p2M/tU="
|
||||
AccessExpire: 86400 # JWT过期时间
|
||||
CacheRedis:
|
||||
- Host: "127.0.0.1:6379"
|
||||
Pass: "" # Redis 密码,如果未设置则留空
|
||||
Type: "node" # 单节点模式
|
||||
VerifyCode:
|
||||
AccessKeyID: "LTAI5tHKcV1RbC8t68UfsATy"
|
||||
AccessKeySecret: "wLWjMBnAlchFMa9gC8B7ZVBKaew4t5"
|
||||
EndpointURL: "dysmsapi.aliyuncs.com"
|
||||
SignName: "天远查"
|
||||
TemplateCode: "SMS_299200388"
|
||||
ValidTime: 300
|
||||
Qiniu:
|
||||
AccessKey: "AO6u6sDWi6L9TsPfr4awC7FYP85JTjt3bodZACCM"
|
||||
SecretKey: "2fjxweGtSAEaUdVgDkWEmN7JbBxHBQDv1cLORb9_"
|
||||
Bucket: "tianyuanapi"
|
||||
Domain: "https://file.tianyuanapi.com"
|
||||
|
||||
Baidu:
|
||||
ApiKey: "aMsrBNGUJxgcgqdm3SEdcumm"
|
||||
SecretKey: "sWlv2h2AWA3aAt5bjXCkE6WeA5AzpAAD"
|
||||
|
||||
UserRpc:
|
||||
Etcd:
|
||||
Hosts:
|
||||
- 127.0.0.1:2379
|
||||
Key: user.rpc
|
||||
SentinelRpc:
|
||||
Etcd:
|
||||
Hosts:
|
||||
- 127.0.0.1:2379
|
||||
Key: sentinel.rpc
|
||||
@@ -1,12 +1,12 @@
|
||||
Name: gateway-api
|
||||
Host: 0.0.0.0
|
||||
Port: 10001
|
||||
DataSource: "tianyuanapi:g3h98u0291j@tcp(127.0.0.1:3307)/tianyuanapi?charset=utf8mb4&parseTime=True&loc=Local"
|
||||
DataSource: "tianyuanapi:g3h98u0291j@tcp(tyapi_mysql:3306)/tianyuanapi?charset=utf8mb4&parseTime=True&loc=Local"
|
||||
AuthJWT:
|
||||
AccessSecret: "Mf5Xph3PoyKzVpRw0Zy1+X4uR/tM7JvGMEV/5p2M/tU="
|
||||
AccessExpire: 86400 # JWT过期时间
|
||||
CacheRedis:
|
||||
- Host: "127.0.0.1:6379"
|
||||
- Host: "tyapi_redis:6379"
|
||||
Pass: "" # Redis 密码,如果未设置则留空
|
||||
Type: "node" # 单节点模式
|
||||
VerifyCode:
|
||||
@@ -29,10 +29,10 @@ Baidu:
|
||||
UserRpc:
|
||||
Etcd:
|
||||
Hosts:
|
||||
- 127.0.0.1:2379
|
||||
- tyapi_etcd:2379
|
||||
Key: user.rpc
|
||||
SentinelRpc:
|
||||
Etcd:
|
||||
Hosts:
|
||||
- 127.0.0.1:2379
|
||||
- tyapi_etcd:2379
|
||||
Key: sentinel.rpc
|
||||
Reference in New Issue
Block a user