about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-06-22 04:50:46 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-06-22 04:50:46 +0900
commit4f980efaea0b6b935cd4c554eb6dee40987628ff (patch)
treeac1b5133075be33c8b8614289439623538518056
parent1906b2cd26339ff9e3e5253073042777278322e9 (diff)
downloadnixos-conf-4f980efaea0b6b935cd4c554eb6dee40987628ff.tar.gz
Enter Internet.nl's hall of fame as a champion
-rw-r--r--static.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/static.nix b/static.nix
index 21a2449..6ff96aa 100644
--- a/static.nix
+++ b/static.nix
@@ -71,6 +71,9 @@ in {
       virtualHosts = {
         ${domain} = {
           enableACME = true;
+          extraConfig = ''
+            add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
+          '';
           forceSSL = true;
           locations = {
             "/".index = "index.html index.xhtml";