home

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

commit ac5de9c73738d8cab976ce5616dae9cdcc823d0e
parent a0379f68aa38f4e4c4a3e8ee618470809af2f837
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 15 Jun 2020 19:17:17 +0200

systems/kerkouane: alias dl and files

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

Diffstat:
Msystems/kerkouane.nix | 57++++++++++++++++++++++++++++++++++++---------------------
1 file changed, 36 insertions(+), 21 deletions(-)

diff --git a/systems/kerkouane.nix b/systems/kerkouane.nix @@ -27,6 +27,28 @@ let ]; }); + filesWWW = { + enableACME = true; + forceSSL = true; + root = "/home/vincent/desktop/sites/dl.sbr.pm"; + locations."/" = { + index = "index.html"; + extraConfig = '' + fancyindex on; + fancyindex_localtime on; + fancyindex_exact_size off; + fancyindex_header "/.fancyindex/header.html"; + fancyindex_footer "/.fancyindex/footer.html"; + # fancyindex_ignore "examplefile.html"; + fancyindex_ignore "README.md"; + fancyindex_ignore "HEADER.md"; + fancyindex_ignore ".fancyindex"; + fancyindex_name_length 255; + ''; + }; + extraConfig = nginxExtraConfig; + }; + sources = import ../nix/sources.nix; in { @@ -93,27 +115,8 @@ in recommendedGzipSettings = true; recommendedTlsSettings = true; recommendedOptimisation = true; - virtualHosts."dl.sbr.pm" = { - enableACME = true; - forceSSL = true; - root = "/home/vincent/desktop/sites/dl.sbr.pm"; - locations."/" = { - index = "index.html"; - extraConfig = '' - fancyindex on; - fancyindex_localtime on; - fancyindex_exact_size off; - fancyindex_header "/.fancyindex/header.html"; - fancyindex_footer "/.fancyindex/footer.html"; - # fancyindex_ignore "examplefile.html"; - fancyindex_ignore "README.md"; - fancyindex_ignore "HEADER.md"; - fancyindex_ignore ".fancyindex"; - fancyindex_name_length 255; - ''; - }; - extraConfig = nginxExtraConfig; - }; + virtualHosts."dl.sbr.pm" = filesWWW; + virtualHosts."files.sbr.pm" = filesWWW; virtualHosts."paste.sbr.pm" = { enableACME = true; forceSSL = true; @@ -153,6 +156,18 @@ in root = "/home/vincent/desktop/sites/vincent.demeester.fr"; locations."/" = { index = "index.html"; + extraConfig = '' + fancyindex on; + fancyindex_localtime on; + fancyindex_exact_size off; + fancyindex_header "https://dl.sbr.pm/.fancyindex/header.html"; + fancyindex_footer "https://dl.sbr.pm/.fancyindex/footer.html"; + # fancyindex_ignore "examplefile.html"; + fancyindex_ignore "README.md"; + fancyindex_ignore "HEADER.md"; + fancyindex_ignore ".fancyindex"; + fancyindex_name_length 255; + ''; }; extraConfig = nginxExtraConfig; };