From a3eaab5a078941ecdd458a0169ce515b7290eca9 Mon Sep 17 00:00:00 2001 From: Adrian Cowan Date: Mon, 10 Nov 2025 23:27:50 +1100 Subject: [PATCH] Add deluge bittorrent client --- 2-nomad-config/deluge.nomad.hcl | 120 ++++++++++++++++++++++++ 2-nomad-config/deluge.tf | 64 +++++++++++++ 2-nomad-config/secrets/secrets.enc.json | 8 +- 3 files changed, 190 insertions(+), 2 deletions(-) create mode 100644 2-nomad-config/deluge.nomad.hcl create mode 100644 2-nomad-config/deluge.tf diff --git a/2-nomad-config/deluge.nomad.hcl b/2-nomad-config/deluge.nomad.hcl new file mode 100644 index 0000000..d95cab4 --- /dev/null +++ b/2-nomad-config/deluge.nomad.hcl @@ -0,0 +1,120 @@ +job "deluge" { + group "deluge" { + network { + //mode = "bridge" + port "http" { + to = 8112 + } + } + + task "wireguard" { + driver = "docker" + + lifecycle { + hook = "prestart" + sidecar = true + } + + config { + image = "thrnz/docker-wireguard-pia:latest" + privileged = true + ports = ["http"] + } + + env { + LOC = "aus_melbourne" + LOCAL_NETWORK = "192.168.1.0/24" + # PORT_FORWARDING = "1" # TODO: Find a way to tell deluge the forwarded port, the wireguard container outputs it /pia-shared/port.dat + } + + template { + data = <