a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
24 lines
498 B
Nix
24 lines
498 B
Nix
{ config, depot, lib, pkgs, ... }:
|
|
|
|
{
|
|
systemd.services.tgsa = {
|
|
description = "telegram -> SA bbcode thing";
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
DynamicUser = true;
|
|
Restart = "always";
|
|
ExecStart = "${depot.users.tazjin.tgsa}/bin/tgsa";
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts."tgsa" = {
|
|
serverName = "tgsa.tazj.in";
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8472";
|
|
};
|
|
};
|
|
}
|