home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b046df682b247e622fd7853678502d3cf36cac03
parent f0bdb1655397324726a1ef46f2c797d3990fbde3
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 15 Jun 2020 15:47:19 +0200

systems/kerkouane: enable fancyindex

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/kerkouane.nix | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/systems/kerkouane.nix b/systems/kerkouane.nix @@ -21,6 +21,12 @@ let add_header X-XSS-Protection "1; mode=block"; ''; + nginx = pkgs.nginxMainline.override (old: { + modules = with pkgs.nginxModules; [ + fancyindex + ]; + }); + sources = import ../nix/sources.nix; in { @@ -83,6 +89,7 @@ in }; nginx = { enable = true; + package = nginx; recommendedGzipSettings = true; recommendedTlsSettings = true; recommendedOptimisation = true; @@ -93,7 +100,8 @@ in locations."/" = { index = "index.html"; extraConfig = '' - autoindex on; + fancyindex on; + fancyindex_exact_size off; ''; }; extraConfig = nginxExtraConfig;