- setup-sql-db.ps1: Server=.\SQLEXPRESS default, dung Invoke-Sqlcmd (SqlServer PS module) voi credential + TrustServerCertificate - appsettings.Production.json.example: Server=.\SQLEXPRESS (voi escaped backslash JSON) - DB_CONNECTION Gitea secret da update (qua API) VPS Windows Server 2022 minimal, co VIETREPORT da chay 4 site, SQL instance SQLEXPRESS. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
55 lines
1.3 KiB
JSON
55 lines
1.3 KiB
JSON
{
|
|
"ConnectionStrings": {
|
|
"Default": "Server=.\\SQLEXPRESS;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
|
|
}
|
|
}
|