feat(api+web): merge REST API and Blazor UI into single process
Previously the API (heimdall-central) and Blazor UI (heimdall-web) ran as separate containers with the Blazor Server making internal HTTP calls to the API. This caused the Blazor circuit to disconnect when the API was unreachable (network error → "Une erreur réseau est survenue"). Now both serve from the same .NET process on the same port: - All 16 API controllers, ExceptionFilter, and SignalR hubs integrated into Heimdall.Web - JWT auth, CORS, rate limiting configured in the unified Program.cs - Dockerfile.central entrypoint runs web/Heimdall.Web.dll - docker-compose simplified: heimdall-central service removed - CI publishes heimdall-web image instead of heimdall-central Also fixes timezone validation on Alpine/tzdata-less environments and enables FluentValidation auto-validation in the API project.
This commit is contained in:
1 parent
892ca88de8
commit
562aabdfc8
30 files changed
+1969
-99
No files matched your search
@@ -27,10 +27,21 @@ public class CreateSiteValidator : AbstractValidator<CreateSiteRequest>
|
||||
_ = TimeZoneInfo.FindSystemTimeZoneById(timezone);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
catch (InvalidTimeZoneException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
catch (TimeZoneNotFoundException)
|
||||
{
|
||||
// tzdata may not be installed in this environment (e.g., Alpine Docker).
|
||||
// Accept the value since we can't validate it.
|
||||
return true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// Any other environment issue (ICU data, globalization invariant mode, etc.)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user