ftp: theme in Nix store

This commit is contained in:
polygon - 2022-07-16 22:59:12 +02:00
parent 04b81dc85b
commit 6fed0e0bf9
1 changed files with 15 additions and 1 deletions

View File

@ -44,10 +44,24 @@
additionalModules = [ pkgs.nginxModules.fancyindex ];
};
services.nginx.virtualHosts."ftp.c3d2.de" = {
services.nginx.virtualHosts."ftp.c3d2.de" =
let
theme = pkgs.fetchFromGitHub {
owner = "barrowclift";
repo = "directory-theme";
rev = "fca275a3ab1d64e8cdbff7e4d2e1d44eec924e2e";
sha256 = "sha256-UCQbQ+tyzR/Dpa0t2cogjzBJE+IJ9KAD2dtmq3gbq/U=";
};
in
{
default = true;
enableACME = true;
forceSSL = true;
locations."/.theme/" = {
alias = "${theme}/";
};
locations."/" = {
root = "/var/www/ftp.c3d2.de";
extraConfig = ''