nix-config/fm.nix

28 lines
502 B
Nix
Raw Permalink Normal View History

2026-03-20 21:00:38 +00:00
{ config, lib, pkgs, ... }:
{
security.acme = {
acceptTerms = true;
defaults.email = "itamar@itamar.site";
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."fm.itamar.site" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:4110";
proxyWebsockets = true;
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}