The target Pi only has MariaDB, and SQL Server has no ARM64 build at all - not a config problem, a real gap discovered during deployment setup. Swapped the EF Core provider, regenerated every migration, updated connection strings and the backup script everywhere they appear. Took two tries to land on a provider that actually works: Pomelo builds fine against this project's EF Core 10 packages but fails at runtime (it's compiled against 9's internal API surface, which moved in 10 wherever Identity/DataProtection force the newer packages). Oracle's official provider builds and migrates fine but has a real MariaDB bug in its own migration-lock code, reproduced against a live database. Kept Oracle's provider and worked around just that one broken method - everything else it does is correct - rather than give up more of the stack to chase a workaround. Verified against a real local MariaDB end to end: all three migrations applied, both hosts start clean, full suite still green.
45 lines
1015 B
JSON
45 lines
1015 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "Server=127.0.0.1;Port=3306;Database=SlpModularCmsSlave;Uid=root;Pwd=<your-local-mariadb-password>"
|
|
},
|
|
"JwtSettings": {
|
|
"Secret": "SuperSecretKeyForDevelopmentOnly_MustBeLongerThan32Bytes!",
|
|
"Issuer": "SlpModularCms",
|
|
"Audience": "SlpModularCmsPortal",
|
|
"ExpiryMinutes": 60,
|
|
"RefreshTokenExpiryDays": 7,
|
|
"CookieSameSite": "None"
|
|
},
|
|
"Availability": {
|
|
"CircuitBreakerSeconds": 30,
|
|
"StatusCacheSeconds": 1
|
|
},
|
|
"MasterPolling": {
|
|
"PollIntervalSeconds": 15,
|
|
"FailOpenAfterMinutes": 2,
|
|
"HttpTimeoutSeconds": 5
|
|
},
|
|
"Cors": {
|
|
"AllowedOrigins": [
|
|
"http://localhost:5174",
|
|
"https://localhost:5174"
|
|
]
|
|
},
|
|
"RateLimiting": {
|
|
"Login": {
|
|
"PermitLimit": 100,
|
|
"WindowSeconds": 60
|
|
},
|
|
"Refresh": {
|
|
"PermitLimit": 500,
|
|
"WindowSeconds": 60
|
|
}
|
|
}
|
|
}
|