tvl-depot/users/tazjin/nixos/modules/tgsa.nix
Vincent Ambo 074ee66eb0 fix(tazjin/nixos): force tgsa proxying over IPv4
Change-Id: I5b77d1c3a7e19144c0002d2b6f909317cfc62092
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5613
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-05-16 09:21:29 +00:00

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";
};
};
}