about summary refs log blame commit diff
path: root/users/tazjin/nixos/modules/tgsa.nix
blob: 82b2bec44acd3ed59c5bde15e39282ba5674bf8e (plain) (tree)























                                                        
{ 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://localhost:8472";
    };
  };
}