nix server config

This commit is contained in:
itamar 2026-03-20 21:00:38 +00:00
commit 4a6efc0c1a
Signed by: itamar
GPG key ID: C494AC33A201F9E4
5 changed files with 287 additions and 0 deletions

27
fm.nix Normal file
View file

@ -0,0 +1,27 @@
{ 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 ];
}