summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/dl.euer.krebsco.de.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/nginx/dl.euer.krebsco.de.nix')
-rw-r--r--makefu/2configs/nginx/dl.euer.krebsco.de.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/makefu/2configs/nginx/dl.euer.krebsco.de.nix b/makefu/2configs/nginx/dl.euer.krebsco.de.nix
new file mode 100644
index 000000000..828a66a74
--- /dev/null
+++ b/makefu/2configs/nginx/dl.euer.krebsco.de.nix
@@ -0,0 +1,17 @@
+{ 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;
+ enableACME = true;
+ basicAuth = import <secrets/dl.euer.krebsco.de-auth.nix>;
+ };
+ };
+}