aboutsummaryrefslogtreecommitdiff
path: root/nomad
diff options
context:
space:
mode:
Diffstat (limited to 'nomad')
-rw-r--r--nomad/jitsi.hcl30
1 files changed, 25 insertions, 5 deletions
diff --git a/nomad/jitsi.hcl b/nomad/jitsi.hcl
index 6b54d14..e6fc964 100644
--- a/nomad/jitsi.hcl
+++ b/nomad/jitsi.hcl
@@ -42,8 +42,13 @@ job "jitsi" {
data = "{{ key \"secrets/jitsi/jitsi.deuxfleurs.fr.key\" }}"
destination = "secrets/certs/jitsi.deuxfleurs.fr.key"
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw"
+ destination = "secrets/global_env.tpl"
+ mode = "file"
+ }
template {
- data = "{{ key \"secrets/jitsi/global_env\" }}"
+ source = "secrets/global_env.tpl"
destination = "secrets/global_env"
env = true
}
@@ -103,8 +108,13 @@ job "jitsi" {
data = "{{ key \"secrets/jitsi/jitsi.deuxfleurs.fr.key\" }}"
destination = "secrets/certs/jitsi.deuxfleurs.fr.key"
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw"
+ destination = "secrets/global_env.tpl"
+ mode = "file"
+ }
template {
- data = "{{ key \"secrets/jitsi/global_env\" }}"
+ source = "secrets/global_env.tpl"
destination = "secrets/global_env"
env = true
}
@@ -159,8 +169,13 @@ job "jitsi" {
data = "{{ key \"secrets/jitsi/auth.jitsi.deuxfleurs.fr.crt\" }}"
destination = "secrets/certs/auth.jitsi.deuxfleurs.fr.crt"
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw"
+ destination = "secrets/global_env.tpl"
+ mode = "file"
+ }
template {
- data = "{{ key \"secrets/jitsi/global_env\" }}"
+ source = "secrets/global_env.tpl"
destination = "secrets/global_env"
env = true
}
@@ -174,7 +189,7 @@ job "jitsi" {
task "videobridge" {
driver = "docker"
config {
- image = "superboum/amd64_jitsi_videobridge:v1"
+ image = "superboum/amd64_jitsi_videobridge:v3"
network_mode = "host"
port_map {
video1_port = 4443
@@ -182,8 +197,13 @@ job "jitsi" {
}
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw"
+ destination = "secrets/global_env.tpl"
+ mode = "file"
+ }
template {
- data = "{{ key \"secrets/jitsi/global_env\" }}"
+ source = "secrets/global_env.tpl"
destination = "secrets/global_env"
env = true
}