ftp: theme in Nix store
This commit is contained in:
parent
04b81dc85b
commit
6fed0e0bf9
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue