From ccec163998618e8379b4779e228f04c9f2aa8386 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 19 Oct 2024 21:37:12 +0200 Subject: [PATCH] nixos/solitary: Persist alternative services --- nixos/config/solitary/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/config/solitary/configuration.nix b/nixos/config/solitary/configuration.nix index 08d3e2f..ecbd80f 100644 --- a/nixos/config/solitary/configuration.nix +++ b/nixos/config/solitary/configuration.nix @@ -377,7 +377,7 @@ in { http-request cache-use default http-request set-header X-Forwarded-Proto %[ssl_fc,iif(https,http)] - http-response set-header Alt-Svc "h3=\":443\"" + http-response set-header Alt-Svc "h3=\":443\"; ma=7776000; persist=1, h2=\":443\"; ma=7776000; persist=1" http-response set-header Cross-Origin-Embedder-Policy require-corp unless { res.hdr(Cross-Origin-Embedder-Policy) -m found } http-response set-header Cross-Origin-Opener-Policy same-site unless { res.hdr(Cross-Origin-Opener-Policy) -m found } http-response set-header Cross-Origin-Resource-Policy same-site unless { res.hdr(Cross-Origin-Resource-Policy) -m found }