about summary refs log tree commit diff
diff options
context:
space:
mode:
-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";