summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/share-download.nix
blob: 65c44b294e573f7b06d29fbaeac7e748bb430df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>;
    };
  };
}