Files
OpenAuth.Net/OpenAuth.WebApi/appsettings.json
李玉宝 4e68d99682 🐛fix: #IJX34Q 非Identity的token支持jwt token
Signed-off-by: 李玉宝 <yubaolee@163.com>
2026-07-06 13:16:01 +00:00

32 lines
1.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"Logging": {
"LogLevel": {
"Default": "Debug"
}
},
"AllowedHosts": "*",
"DataProtection": "temp-keys/",
"ConnectionStrings": {
"OpenAuthDBContext": "Data Source=.;Encrypt=false;Initial Catalog=OpenAuthDB;User=sa;Password=000000"
//"OpenAuthDBContext": "server=127.0.0.1;user id=root;database=openauthdb;password=000000" //my sql
//"OpenAuthDBContext": "Host=localhost;Port=5432;Database=OpenAuth;Username=postgres;Password=123;" //PostgreSQL
//"OpenAuthDBContext2": "DATA SOURCE=192.168.0.118:1521/YUBAO;PASSWORD=000000;Validate Connection=true;PERSIST SECURITY INFO=True;USER ID=yubaolee;" //Oracle
//"OpenAuthDBContext3": "server=127.0.0.1;user id=root;database=openauthpro;password=000000" //my sql
},
"AppSetting": {
"IdentityServerUrl": "", //IdentityServer服务器地址。如果为空则不启用OAuth认证
// "IdentityServerUrl": "http://localhost:12796", //IdentityServer服务器地址。如果为空则不启用OAuth认证
"DbTypes": {
"OpenAuthDBContext": "SqlServer" //数据库类型SqlServer、MySql、Oracle、PostgreSQL
// "OpenAuthDBContext":"PostgreSQL"
// ,"OpenAuthDBContext2":"Oracle"
// ,"OpenAuthDBContext3":"MySql"
},
"UploadPath": "", //附件上传的路径,如果为空则保存在站点根目录
"RedisConf": "redistest.cq-p.com.cn:8001,password=share_redis@123", //redis配置
"HttpHost": "http://*:52789", //启动绑定地址及端口
"JwtSecret": "openauth_jwt_secret_key_please_change_in_production", //JWT签名密钥生产环境请修改
"JwtExpireDays": 10 //JWT Token过期天数
}
}