diff options
author | makefu <github@syntax-fehler.de> | 2017-01-09 16:02:20 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-01-09 16:02:20 +0100 |
commit | a0ac341b4262dcff2b5f5d1a1ea13656cbec8b77 (patch) | |
tree | fa307466bd68118ce972ebbd8bce76e47fb4e57f /2configs | |
parent | 46675d520310c9e797c2942faed051fefa59e52e (diff) |
m 2 nginx/share-download: expose dl-dir via nginx
Diffstat (limited to '2configs')
-rw-r--r-- | 2configs/nginx/share-download.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2configs/nginx/share-download.nix b/2configs/nginx/share-download.nix new file mode 100644 index 000000000..65c44b294 --- /dev/null +++ b/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>; + }; + }; +} |