nix-files/hosts/by-name/servo/services/jackett.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

{ ... }:
2022-05-04 00:10:32 +00:00
{
sane.persist.sys.plaintext = [
# TODO: mode? we only need this to save Indexer creds ==> migrate to config?
{ user = "root"; group = "root"; path = "/var/lib/jackett"; }
];
2022-05-04 00:10:32 +00:00
services.jackett.enable = true;
systemd.services.jackett.after = [ "wireguard-wg-ovpns.service" ];
systemd.services.jackett.partOf = [ "wireguard-wg-ovpns.service" ];
2022-05-04 00:10:32 +00:00
systemd.services.jackett.serviceConfig = {
# run this behind the OVPN static VPN
NetworkNamespacePath = "/run/netns/ovpns";
# patch jackett to listen on the public interfaces
# ExecStart = lib.mkForce "${pkgs.jackett}/bin/Jackett --NoUpdates --DataFolder /var/lib/jackett/.config/Jackett --ListenPublic";
};
2022-12-17 00:52:48 +00:00
# jackett torrent search
services.nginx.virtualHosts."jackett.uninsane.org" = {
forceSSL = true;
enableACME = true;
# inherit kTLS;
locations."/" = {
# proxyPass = "http://ovpns.uninsane.org:9117";
proxyPass = "http://10.0.1.6:9117";
recommendedProxySettings = true;
2022-12-17 00:52:48 +00:00
};
};
sane.dns.zones."uninsane.org".inet.CNAME."jackett" = "native";
2022-05-04 00:10:32 +00:00
}