[CLAUDE] Config: appsettings.Production.json.example voi domain huypham.vn + policy 12-char
Some checks failed
Deploy SOLUTION_ERP / build-backend (push) Failing after 8s
Deploy SOLUTION_ERP / build-fe-admin (push) Has been cancelled
Deploy SOLUTION_ERP / build-fe-user (push) Has been cancelled
Deploy SOLUTION_ERP / deploy-iis (push) Has been cancelled

- 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:
pqhuy1987
2026-04-21 13:27:57 +07:00
parent 1b5ef2ed51
commit fba0754110

View File

@ -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
}
}