nix-config/hosts/cirrostratus/nginx.nix
2024-10-21 16:06:30 +02:00

26 lines
521 B
Nix

{
inputs,
config,
pkgs,
lib,
...
}: {
imports = [
../../configs/nixos/nginx.nix
];
services.nginx.clientMaxBodySize = "100m";
services.nginx.virtualHosts = {
"gabevenberg.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/gabevenberg.com";
};
"draft.gabevenberg.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/draft.gabevenberg.com";
basicAuthFile = config.sops.secrets.gabevenberg-draft-credentials.path;
};
};
}