nixos-config/modules/system/services/server/webserver/nginx/virtualhosts/nixfox/default.nix
2025-02-25 03:03:43 -05:00

16 lines
352 B
Nix

{ config, lib, ... }:
{
services.nginx.virtualHosts = lib.mkIf config.system.server.enable {
"www.nixfox.ca" = {
enableACME = true;
addSSL = true;
default = true;
root = "/var/www/landing-page";
};
"nixfox.ca" = {
enableACME = true;
addSSL = true;
globalRedirect = "www.nixfox.ca";
};
};
}