[CLAUDE] Config: appsettings.Production.json.example voi domain huypham.vn + policy 12-char
- Template commit (not actual Production.json — bi gitignore de tranh leak secret) - ConnectionStrings: User Id=vrapp, Password placeholder - AllowedOrigins: https://admin.huypham.vn + https://user.huypham.vn - Identity.Password.RequiredLength = 12 prod (dev still 8) - Identity.Lockout: 15min, 5 fail max - Khi deploy: cp appsettings.Production.json.example appsettings.Production.json tren server va set secret thuc te (Jwt.Secret, ConnectionStrings.Default password) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"Default": "Server=localhost;Database=SolutionErp;User Id=vrapp;Password=__SET_VIA_SECRETS__;MultipleActiveResultSets=true;TrustServerCertificate=true;Encrypt=true"
|
||||||
|
},
|
||||||
|
"Jwt": {
|
||||||
|
"Issuer": "SolutionErp.Api",
|
||||||
|
"Audience": "SolutionErp.Client",
|
||||||
|
"Secret": "__SET_VIA_USER_SECRETS_OR_ENV__minimum_64_chars_random",
|
||||||
|
"AccessTokenExpiryMinutes": 60,
|
||||||
|
"RefreshTokenExpiryDays": 7
|
||||||
|
},
|
||||||
|
"AllowedOrigins": [
|
||||||
|
"https://admin.huypham.vn",
|
||||||
|
"https://user.huypham.vn"
|
||||||
|
],
|
||||||
|
"Identity": {
|
||||||
|
"Password": {
|
||||||
|
"RequiredLength": 12
|
||||||
|
},
|
||||||
|
"Lockout": {
|
||||||
|
"Minutes": 15,
|
||||||
|
"MaxFailedAttempts": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Serilog": {
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Override": {
|
||||||
|
"Microsoft": "Warning",
|
||||||
|
"Microsoft.EntityFrameworkCore": "Warning",
|
||||||
|
"Microsoft.AspNetCore.Hosting.Diagnostics": "Warning",
|
||||||
|
"System": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"WriteTo": [
|
||||||
|
{ "Name": "Console" },
|
||||||
|
{
|
||||||
|
"Name": "File",
|
||||||
|
"Args": {
|
||||||
|
"path": "logs/solution-erp-.log",
|
||||||
|
"rollingInterval": "Day",
|
||||||
|
"retainedFileCountLimit": 30,
|
||||||
|
"fileSizeLimitBytes": 104857600,
|
||||||
|
"rollOnFileSizeLimit": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"RateLimit": {
|
||||||
|
"AuthLoginPerMinute": 5,
|
||||||
|
"GlobalPerMinute": 300
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user