nixos-config/modules/system/services/server/webserver/nginx/virtualhosts/p2/default.nix

17 lines
385 B
Nix
Raw Normal View History

{ config, lib, ... }:
2024-10-22 21:08:23 -04:00
{
2025-01-17 19:55:34 -05:00
services.nginx.virtualHosts = lib.mkIf config.system.server.enable {
"www.${config.domains.p2}" = {
enableACME = true;
addSSL = true;
2025-01-20 15:40:01 -05:00
default = true;
2025-01-17 19:55:34 -05:00
root = "/var/www/landing-page";
};
"${config.domains.p2}" = {
enableACME = true;
addSSL = true;
globalRedirect = "www.${config.domains.p2}";
};
2024-10-22 21:08:23 -04:00
};
}