From eb208085f011aa48bae73b98caa1f4fccae74ab6 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 9 Jan 2017 16:02:20 +0100 Subject: m 2 nginx/share-download: expose dl-dir via nginx --- makefu/2configs/nginx/share-download.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 makefu/2configs/nginx/share-download.nix (limited to 'makefu') diff --git a/makefu/2configs/nginx/share-download.nix b/makefu/2configs/nginx/share-download.nix new file mode 100644 index 000000000..65c44b294 --- /dev/null +++ b/makefu/2configs/nginx/share-download.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +with import ; +{ + services.nginx = { + enable = mkDefault true; + recommendedGzipSettings = true; + recommendedOptimisation = true; + virtualHosts."dl.euer.krebsco.de" = { + root = config.makefu.dl-dir; + extraConfig = "autoindex on;"; + forceSSL = true; + enableSSL = true; + enableACME = true; + basicAuth = import ; + }; + }; +} -- cgit v1.2.3