nix-config/hosts/cirrostratus/nginx.nix

26 lines
521 B
Nix
Raw Normal View History

{
inputs,
config,
pkgs,
lib,
...
}: {
imports = [
../../configs/nixos/nginx.nix
];
2024-10-21 16:06:30 +02:00
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;
};
2024-08-07 22:24:17 +02:00
};
}