nginx: set cache control header

This commit is contained in:
Joeri Exelmans 2025-05-17 16:55:54 +02:00
parent ad2f8d59b8
commit ce883e2777

View file

@ -224,6 +224,7 @@ let secrets = import ../secrets.nix; in
basicAuth = userlist; basicAuth = userlist;
extraConfig = '' extraConfig = ''
autoindex on; autoindex on;
add_header Cache-Control max-age=172800
''; '';
proxyWebsockets = true; proxyWebsockets = true;
}; };
@ -339,4 +340,4 @@ let secrets = import ../secrets.nix; in
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment? system.stateVersion = "21.11"; # Did you read the comment?
} }