添加项目文件。
This commit is contained in:
48
QYZH.InteractiveMagazine.WebApi/appsettings.json
Normal file
48
QYZH.InteractiveMagazine.WebApi/appsettings.json
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Server=localhost;Database=interactive_magazine;Uid=root;Pwd=root;Charset=utf8mb4;"
|
||||
},
|
||||
"JwtSettings": {
|
||||
"Issuer": "QYZH.InteractiveMagazine",
|
||||
"Audience": "QYZH.InteractiveMagazine.Client",
|
||||
"SecretKey": "your-256-bit-secret-key-here-change-in-production",
|
||||
"ExpiryMinutes": 120
|
||||
},
|
||||
"RedisSettings": {
|
||||
"ConnectionString": "localhost:6379",
|
||||
"InstanceName": "interactive_magazine"
|
||||
},
|
||||
"RabbitMQSettings": {
|
||||
"HostName": "localhost",
|
||||
"Port": 5672,
|
||||
"UserName": "guest",
|
||||
"Password": "guest",
|
||||
"VirtualHost": "/"
|
||||
},
|
||||
"WeChatSettings": {
|
||||
"AppId": "your-wechat-appid",
|
||||
"AppSecret": "your-wechat-appsecret"
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"Microsoft": "Warning",
|
||||
"System": "Warning"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console"
|
||||
},
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "logs/log-.txt",
|
||||
"rollingInterval": "Day"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Reference in New Issue
Block a user