25 lines
441 B
Nix
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";
|
|
# };
|
|
# };
|
|
# };
|
|
}
|