File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ job "feediverse" {
2+ type = " service"
3+ datacenters = [" VOID" ]
4+ namespace = " apps"
5+
6+ group "feediverse" {
7+ network {
8+ mode = " bridge"
9+ }
10+
11+ ephemeral_disk {
12+ migrate = true
13+ size = 200
14+ sticky = true
15+ }
16+
17+ task "app" {
18+ driver = " docker"
19+
20+ config {
21+ image = " ghcr.io/classabbyamp/feediverse:20251226R2"
22+ }
23+
24+ env {
25+ VERBOSE = 1
26+ CONFIG_FILE = " /secrets/config.yaml"
27+ STATE_FILE = " /alloc/data/state.json"
28+ DEDUPE = " url"
29+ }
30+
31+ template {
32+ data = << EOT
33+ {{- with nomadVar "nomad/jobs/feediverse" }}
34+ access_token: "{{ .access_token }}"
35+ client_id: "{{ .client_id }}"
36+ client_secret: "{{ .client_secret }}"
37+ {{- end }}
38+ feeds:
39+ - include_images: true
40+ template: '{title} {url}'
41+ url: https://voidlinux.org/atom.xml
42+ name: feediverse
43+ url: chaos.social
44+ EOT
45+ destination = " secrets/config.yaml"
46+ }
47+ }
48+ }
49+ }
50+
You can’t perform that action at this time.
0 commit comments