summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/dl.euer.krebsco.de.nix
blob: 828a66a741a8f621d5afa89dde855aa9658f6619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>;
    };
  };
}