✨
This commit is contained in:
36
StopShopping.Api/appsettings.Template.json
Normal file
36
StopShopping.Api/appsettings.Template.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"StopShopping": "PG_CONNECTION_STRING"
|
||||
},
|
||||
"JwtOptions": {
|
||||
"ValidAudience": "StopShopping.Client",
|
||||
"ValidIssuer": "StopShopping.Api",
|
||||
"SigningKey": "128_BIT_SIGNING_KEY",
|
||||
"AccessTokenExpiresIn": "3600",
|
||||
"RefreshTokenExpiresIn": "604800"
|
||||
},
|
||||
"AppOptions": {
|
||||
"CookieDomain": ".example.com或者localhost(开发环境)",
|
||||
"DomainPath": "https://example.com或者http://localhost(开发环境)",
|
||||
"CSRFHeaderName": "X-CSRF-TOKEN",
|
||||
"CSRFCookieName": "csrf_token",
|
||||
"CorsAllowedOrigins": ["https://web.example.com(跨域)"]
|
||||
},
|
||||
"OpenPlatformOptions": {
|
||||
"TencentDistrict": {
|
||||
"SecretKey": "TENCENT_API_KEY",
|
||||
"Top3LevelUrl": "https://apis.map.qq.com/ws/district/v1/list",
|
||||
"GetChildrenUrl": "https://apis.map.qq.com/ws/district/v1/getchildren"
|
||||
}
|
||||
},
|
||||
"Serilog": {
|
||||
"Using": ["Serilog.Sinks.Console"],
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"WriteTo": [{ "Name": "Console" }]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user