forked from void-linux/void-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeediverse.nomad
More file actions
51 lines (44 loc) · 1.02 KB
/
feediverse.nomad
File metadata and controls
51 lines (44 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# the token for this must have the permissions: read:statuses, profile, write:media, write:status
job "feediverse" {
type = "service"
datacenters = ["VOID"]
namespace = "apps"
group "feediverse" {
network {
mode = "bridge"
}
ephemeral_disk {
migrate = true
size = 200
sticky = true
}
task "app" {
driver = "docker"
config {
image = "ghcr.io/classabbyamp/feediverse:20251226R2"
}
env {
VERBOSE = 1
CONFIG_FILE = "/secrets/config.yaml"
STATE_FILE = "/alloc/data/state.json"
DEDUPE = "url"
}
template {
data = <<EOT
{{- with nomadVar "nomad/jobs/feediverse" }}
access_token: "{{ .access_token }}"
client_id: "{{ .client_id }}"
client_secret: "{{ .client_secret }}"
{{- end }}
feeds:
- include_images: true
template: '{title} {url}'
url: https://voidlinux.org/atom.xml
name: feediverse
url: chaos.social
EOT
destination = "secrets/config.yaml"
}
}
}
}