tfc-nixos/modules/website.nix
2025-05-19 11:33:51 -05:00

25 lines
425 B
Nix

{ config, lib, pkgs, ... }:
let
dn = "tfcconnection.org";
in
with lib;
{
services.nginx.virtualHosts.${dn} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:4242";
proxyWebsockets = true;
};
};
systemd.services = {
website = {
enable = true;
serviceConfig = {
ExecStart = "${pkgs.website}/bin/tfcapi";
};
};
};
}