diff options
author | lassulus <lass@lassul.us> | 2017-01-10 14:54:34 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-01-10 14:54:34 +0100 |
commit | 131de9bbd174011e072b116792ce32d8591e7670 (patch) | |
tree | 2d4ebf7a19ce5eab911aea56cced0d18224f54bf /makefu/2configs/nginx | |
parent | 79cfd8b26f560e0d792a392efdcc7d7a9e1daf1e (diff) | |
parent | a510069d86bd00d9ff348bdad321294cdf42dafb (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/nginx')
-rw-r--r-- | makefu/2configs/nginx/share-download.nix | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stockholm/lib>; +{ + 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 <secrets/dl.euer.krebsco.de-auth.nix>; + }; + }; +} |