First deployment of Jitsi on nomad

This commit is contained in:
Quentin 2020-03-27 21:50:00 +01:00
parent 54df46d9d2
commit ca482f7e3e
6 changed files with 58 additions and 3 deletions

View file

View file

@ -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