tfc-nixos/modules/website.nix
2025-05-19 14:23:21 -05:00

25 lines
441 B
Nix

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