nix-config/website.nix
2026-03-20 21:00:38 +00:00

19 lines
334 B
Nix

{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;
virtualHosts."itamar.site" = {
enableACME = true;
forceSSL = true;
root = "/var/www/itamar.site";
locations."/" = {
tryFiles = "$uri $uri/ =404";
};
};
};
}