aboutsummaryrefslogtreecommitdiff
path: root/nomad/jitsi.hcl
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-03-27 21:50:00 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-03-27 21:50:00 +0100
commitca482f7e3e86fdcc2d12f44adba3140ff06ce85d (patch)
treef016ae551bc5682ac125cb2481fdf692f6a53188 /nomad/jitsi.hcl
parent54df46d9d25ac509247ef9fd3847de3ab7b75aee (diff)
downloadinfrastructure-ca482f7e3e86fdcc2d12f44adba3140ff06ce85d.tar.gz
infrastructure-ca482f7e3e86fdcc2d12f44adba3140ff06ce85d.zip
First deployment of Jitsi on nomad
Diffstat (limited to 'nomad/jitsi.hcl')
-rw-r--r--nomad/jitsi.hcl61
1 files changed, 58 insertions, 3 deletions
diff --git a/nomad/jitsi.hcl b/nomad/jitsi.hcl
index 7f69d80..09d9ccd 100644
--- a/nomad/jitsi.hcl
+++ b/nomad/jitsi.hcl
@@ -1,9 +1,7 @@
/*
* WIP WIP WIP WIP
*
- * + NEED TO INJECT CERTIFICATES
* + NEED TO SET ENV VARIABLES
- * + ADD AT LEAST jitsi-videobridge.jitsi.deuxfleurs.fr TO DNS
*/
job "jitsi" {
@@ -28,6 +26,28 @@ job "jitsi" {
}
}
+ template {
+ data = "{{ key \"secrets/jitsi/auth.jitsi.deuxfleurs.fr.crt\" }}"
+ destination = "secrets/certs/auth.jitsi.deuxfleurs.fr.crt"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/auth.jitsi.deuxfleurs.fr.key\" }}"
+ destination = "secrets/certs/auth.jitsi.deuxfleurs.fr.key"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/jitsi.deuxfleurs.fr.crt\" }}"
+ destination = "secrets/certs/jitsi.deuxfleurs.fr.crt"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/jitsi.deuxfleurs.fr.key\" }}"
+ destination = "secrets/certs/jitsi.deuxfleurs.fr.key"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/global_env\" }}"
+ destination = "secrets/global_env"
+ env = true
+ }
+
resources {
cpu = 300
memory = 200
@@ -75,6 +95,20 @@ job "jitsi" {
}
}
+ template {
+ data = "{{ key \"secrets/jitsi/auth.jitsi.deuxfleurs.fr.crt\" }}"
+ destination = "secrets/certs/auth.jitsi.deuxfleurs.fr.crt"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/auth.jitsi.deuxfleurs.fr.key\" }}"
+ destination = "secrets/certs/auth.jitsi.deuxfleurs.fr.key"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/global_env\" }}"
+ destination = "secrets/global_env"
+ env = true
+ }
+
resources {
cpu = 300
memory = 200
@@ -90,7 +124,8 @@ job "jitsi" {
"jitsi",
"traefik.enable=true",
"traefik.frontend.entryPoints=https,http",
- "traefik.frontend.rule=Host:jitsi.deuxfleurs.fr;PathPrefix:/"
+ "traefik.frontend.rule=Host:jitsi.deuxfleurs.fr;PathPrefix:/",
+ "traefik.protocol=https"
]
port = "https_port"
address_mode = "host"
@@ -116,6 +151,20 @@ job "jitsi" {
network_mode = "host"
}
+ template {
+ data = "{{ key \"secrets/jitsi/jitsi.deuxfleurs.fr.crt\" }}"
+ destination = "secrets/certs/jitsi.deuxfleurs.fr.crt"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/auth.jitsi.deuxfleurs.fr.crt\" }}"
+ destination = "secrets/certs/auth.jitsi.deuxfleurs.fr.crt"
+ }
+ template {
+ data = "{{ key \"secrets/jitsi/global_env\" }}"
+ destination = "secrets/global_env"
+ env = true
+ }
+
resources {
cpu = 300
memory = 200
@@ -133,6 +182,12 @@ job "jitsi" {
}
}
+ template {
+ data = "{{ key \"secrets/jitsi/global_env\" }}"
+ destination = "secrets/global_env"
+ env = true
+ }
+
resources {
cpu = 300
memory = 500