Server reale e veste Docker (M5): composizione, collegamento, vista remota, salute, immagine e modello Unraid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
35 files changed
+6124
-10
No files matched your search
@@ -2,6 +2,7 @@ using System.Net;
|
||||
using Febe.Core.Abstractions;
|
||||
using Febe.Core.Engine;
|
||||
using Febe.Web.Api;
|
||||
using Febe.Web.Connection;
|
||||
using Febe.Web.Demo;
|
||||
using Febe.Web.Engine;
|
||||
using Febe.Web.Hosting;
|
||||
@@ -58,6 +59,7 @@ public static class FebeWeb
|
||||
services.TryAddSingleton<OfflineEngine>();
|
||||
services.TryAddSingleton<IEngineMonitor>(sp => sp.GetRequiredService<OfflineEngine>());
|
||||
services.TryAddSingleton<IEngineControl>(sp => sp.GetRequiredService<OfflineEngine>());
|
||||
services.TryAddSingleton<IConfigurationProblems, NoConfigurationProblems>();
|
||||
services.AddHttpContextAccessor();
|
||||
if (options.Access == AccessMode.Password && !string.IsNullOrEmpty(options.Password))
|
||||
{
|
||||
@@ -86,6 +88,10 @@ public static class FebeWeb
|
||||
}
|
||||
|
||||
app.UseMiddleware<ApiErrorMiddleware>();
|
||||
app.UseMiddleware<ConfigurationGateMiddleware>();
|
||||
|
||||
// The remote view (/api/vista). Origin and session are checked by the security middleware above.
|
||||
app.UseWebSockets();
|
||||
var types = new FileExtensionContentTypeProvider();
|
||||
types.Mappings[".json"] = "application/json; charset=utf-8";
|
||||
types.Mappings[".js"] = "text/javascript; charset=utf-8";
|
||||
@@ -111,6 +117,8 @@ public static class FebeWeb
|
||||
LibraryApi.Map(endpoints);
|
||||
AccountsApi.Map(endpoints);
|
||||
AccessApi.Map(endpoints);
|
||||
RemoteViewSocket.Map(endpoints);
|
||||
HealthEndpoint.Map(endpoints);
|
||||
|
||||
endpoints.Map("/api/{**rest}", static context =>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user