85fe10bef1
Change-Id: I45824b65689a659ba25629f3565b9d5cb77b61c3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8626 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
25 lines
570 B
Nix
25 lines
570 B
Nix
{ config, depot, lib, pkgs, ... }:
|
|
|
|
{
|
|
systemd.services.tgsa = {
|
|
description = "telegram -> SA bbcode thing";
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
EnvironmentFile = "/root/tgsa-env"; # TODO(tazjin): automate this
|
|
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";
|
|
};
|
|
};
|
|
}
|