m 2 nginx/share-download: expose dl-dir via nginx
This commit is contained in:
parent
1ca165d96d
commit
eb208085f0
18
makefu/2configs/nginx/share-download.nix
Normal file
18
makefu/2configs/nginx/share-download.nix
Normal file
|
@ -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>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue