aboutsummaryrefslogtreecommitdiff
path: root/app/config
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-23 15:55:17 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-23 15:55:17 +0100
commit80dc6ec803949bbb09a8d40c80daaa9c676c0fb6 (patch)
treed2a44cf03ef3f3d9c3646846b4a7d8153181fbc9 /app/config
parent9117616f0250ab0ac724c6aa9a5b6d94ec7c9d92 (diff)
downloadinfrastructure-80dc6ec803949bbb09a8d40c80daaa9c676c0fb6.tar.gz
infrastructure-80dc6ec803949bbb09a8d40c80daaa9c676c0fb6.zip
Migrate jitsi
Diffstat (limited to 'app/config')
-rw-r--r--app/config/configuration/jitsi/global_env.tpl10
-rwxr-xr-xapp/config/restore_configuration.sh7
-rw-r--r--app/config/secrets/jitsi/global_env.sample9
3 files changed, 10 insertions, 16 deletions
diff --git a/app/config/configuration/jitsi/global_env.tpl b/app/config/configuration/jitsi/global_env.tpl
new file mode 100644
index 0000000..836a131
--- /dev/null
+++ b/app/config/configuration/jitsi/global_env.tpl
@@ -0,0 +1,10 @@
+JITSI_SECRET_VIDEOBRIDGE={{ key "secrets/jitsi/jitsi_secret_videobridge" }}
+JITSI_SECRET_JICOFO_COMPONENT={{ key "secrets/jitsi/jitsi_secret_jicofo_component" }}
+JITSI_SECRET_JICOFO_USER={{ key "secrets/jitsi/jitsi_secret_jicofo_user" }}
+JITSI_PROSODY_BOSH_PORT={{ env "NOMAD_PORT_bosh_port" }}
+JITSI_PROSODY_BOSH_HOST=127.0.0.1
+JITSI_PROSODY_HOST=127.0.0.1
+JITSI_CERTS_FOLDER=/secrets/certs/
+JITSI_NAT_PUBLIC_IP=82.253.205.190
+JITSI_NAT_LOCAL_IP={{ env "NOMAD_IP_video1_port" }}
+NGINX_PORT={{ env "NOMAD_PORT_https_port" }}
diff --git a/app/config/restore_configuration.sh b/app/config/restore_configuration.sh
deleted file mode 100755
index 63d71a1..0000000
--- a/app/config/restore_configuration.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-find {configuration,secrets}/$1 -type f \
- | grep --perl-regexp --invert-match "\.sample$|\.gen$|\.gitignore|\.sh$" \
- | while read filename; do
- consul kv put "${filename}" "@${filename}"
- done
diff --git a/app/config/secrets/jitsi/global_env.sample b/app/config/secrets/jitsi/global_env.sample
deleted file mode 100644
index 658c9c9..0000000
--- a/app/config/secrets/jitsi/global_env.sample
+++ /dev/null
@@ -1,9 +0,0 @@
-JITSI_SECRET_VIDEOBRIDGE=redacted
-JITSI_SECRET_JICOFO_COMPONENT=redacted
-JITSI_SECRET_JICOFO_USER=redacted
-JITSI_PROSODY_BOSH_PORT=5280
-JITSI_PROSODY_BOSH_HOST=127.0.0.1
-JITSI_PROSODY_HOST=127.0.0.1
-JITSI_CERTS_FOLDER=/secrets/certs/
-JITSI_NAT_PUBLIC_IP=redacted
-JITSI_NAT_LOCAL_IP={{ env "NOMAD_IP_video1_port" }}