Files
AgileConfig/AgileConfig.Server.Apisite/appsettings.json
T
2022-08-21 01:35:29 +08:00

45 lines
1.7 KiB
JSON

{
"urls": "http://*:5000",
"Logging": {
"LogLevel": {
"Default": "Information",
"System": "Warning",
"Microsoft": "Warning"
}
},
"alwaysTrustSsl": true, // If true, the server will ignore SSL errors.
"serviceHealthCheckInterval": 15, // 服务健康检测的间隔时间,单位:秒
"serviceUnhealthInterval": 60, // 判断服务不健康的间隔,超出这个时间没响应过则认为不健康,默认60,单位:秒
"removeServiceInterval": 0, // 如果一个服务超出这个时间没有响应,则直接移除这个服务,单位:秒;如果设定为 <= 0,则不会移除,默认 0 。
"pathBase": "", //使用反向代理的时候,或许需要修改这个值 /xxx 必须/开头
"adminConsole": false,
"cluster": false, // 集群模式:服务启动后自动加入节点列表,服务启动的时候会获取容器的ip,端口默认5000,适合 docker compose 环境使用
"preview_mode": false,
"db": {
"provider": "", //sqlite,mysql,sqlserver,npgsql,oracle
"conn": "",
//"conn": "Data Source=agile_config.db"
//"conn": "Persist Security Info = False; User ID =dev; Password =dev@123; Initial Catalog =agile_config; Server =."
"env": {
"TEST": {
"provider": "", //sqlite,mysql,sqlserver,npgsql,oracle
"conn": ""
},
"STAGING": {
"provider": "", //sqlite,mysql,sqlserver,npgsql,oracle
"conn": ""
},
"PROD": {
"provider": "", //sqlite,mysql,sqlserver,npgsql,oracle
"conn": ""
}
}
},
"JwtSetting": {
"SecurityKey": "", // 密钥 可以直接在这里配置 jwt 的密钥,或者通过环境变量 JwtSetting:SecurityKey 配置,如果不配置,则系统在启动的时候自动生成一个 key,存在数据库里,如 dfasf343453fsdfa,./,./sdfasf34r3hfhfdb
"Issuer": "agileconfig.admin", // 颁发者
"Audience": "agileconfig.admin", // 接收者
"ExpireSeconds": 86400 // 过期时间
}
}