2025-01-01 02:02:00 -05:00
|
|
|
{ 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;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|