bib3.de-nixos/nginx.nix

41 lines
753 B
Nix

{ config, pkgs, ... }:
let
fqdn = "bib3.de";
in
{
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
# nginx would warn otherwise
mapHashBucketSize = 64;
virtualHosts = {
${fqdn} = {
forceSSL = true;
enableACME = true;
root = "/var/www/default";
locations = {
"/" = {
index = "anmachspruch.mp4";
};
};
};
"www.${fqdn}" = {
enableACME = true;
root = "/var/www/default";
locations = {
"/" = {
index = "anmachspruch.mp4";
};
};
};
};
};
}