mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-05 15:59:29 +02:00
19 lines
380 B
Nix
19 lines
380 B
Nix
{ config, ... }: {
|
|
services = {
|
|
nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"files.${config.deployment-dvb.domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
root = "/var/lib/pub-files/";
|
|
extraConfig = ''
|
|
autoindex on;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|