Piattaforme: istanza unica dopo lo spostamento dei dati, avvio sicuro del contenitore, rilascio con prove e immagine, accesso senza reindirizzamenti esterni (pkg-1, pkg-2, pkg-3, pkg-4, pkg-5, pkg-6, websec-2, web-8, websec-3)
Registro di casa 192.168.30.23:3000 (HTTP) nel modello Unraid, in compose e nel rilascio con buildx; profilo seccomp fuori da /dati. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
36 files changed
+1683
-152
No files matched your search
@@ -38,7 +38,8 @@ public static class AccessApi
|
||||
{
|
||||
HttpOnly = true,
|
||||
SameSite = SameSiteMode.Strict,
|
||||
Secure = context.Request.IsHttps,
|
||||
// Behind the proxy with HTTPS (FEBE_PROXY_FIDATO) too: the session never travels in clear text.
|
||||
Secure = RequestScheme.IsHttps(context.Request, options),
|
||||
Path = "/",
|
||||
IsEssential = true,
|
||||
MaxAge = passwords.SessionLifetime,
|
||||
@@ -54,10 +55,16 @@ public static class AccessApi
|
||||
}
|
||||
});
|
||||
|
||||
endpoints.MapPost("/api/uscita", (HttpContext context) =>
|
||||
endpoints.MapPost("/api/uscita", (HttpContext context, FebeWebOptions options) =>
|
||||
{
|
||||
context.RequestServices.GetService<PasswordAccess>()?.Logout(context.Request.Cookies[PasswordAccess.CookieName]);
|
||||
context.Response.Cookies.Delete(PasswordAccess.CookieName, new CookieOptions { Path = "/", SameSite = SameSiteMode.Strict, HttpOnly = true });
|
||||
context.Response.Cookies.Delete(PasswordAccess.CookieName, new CookieOptions
|
||||
{
|
||||
Path = "/",
|
||||
SameSite = SameSiteMode.Strict,
|
||||
HttpOnly = true,
|
||||
Secure = RequestScheme.IsHttps(context.Request, options),
|
||||
});
|
||||
return ApiHttp.Message("Sei uscito da Febe.");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user