nginx: set cache control header
This commit is contained in:
parent
ad2f8d59b8
commit
ce883e2777
1 changed files with 2 additions and 1 deletions
|
|
@ -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?
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue