@drumee/setup-infra 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/init-acme +4 -2
- package/bin/install +4 -1
- package/bin/jitsi +1 -1
- package/package.json +1 -1
- package/templates/etc/jitsi/jicofo/sip-cmmunicator.properties +3 -0
- package/templates/etc/jitsi/meet.conf.tpl +2 -2
- package/templates/etc/nginx/sites-enabled/drumee.conf.tpl +1 -1
- package/templates/etc/nginx/sites-enabled/jitsi.conf.tpl +1 -1
- package/templates/etc/prosody/conf.d/vhost.cfg.lua.tpl +9 -9
package/bin/init-acme
CHANGED
|
@@ -6,8 +6,10 @@ function make_certs(){
|
|
|
6
6
|
sum=0
|
|
7
7
|
dom=$1
|
|
8
8
|
echo Generating "${dom}" cetificates...
|
|
9
|
+
./acme.sh
|
|
10
|
+
OPTIONS=--issue -d $dom -d "*.${dom}" --home $ACME_DIR --config-home $ACME_DIR/configs --cert-home $ACME_CERTS_DIR --dns dns_nsupdate
|
|
9
11
|
while [ ! -f ${ACME_CERTS_DIR}/${dom}_ecc/fullchain.cer ]; do
|
|
10
|
-
./acme.sh
|
|
12
|
+
./acme.sh $OPTIONS
|
|
11
13
|
if [ $? = "0" ]; then
|
|
12
14
|
echo Certificate have been sucessfully created.
|
|
13
15
|
else
|
|
@@ -16,7 +18,7 @@ function make_certs(){
|
|
|
16
18
|
fi
|
|
17
19
|
if [ "$sum" -gt "10" ]; then
|
|
18
20
|
echo Failed to create certifiicates. Please run manually
|
|
19
|
-
echo $ACME_DIR/acme.sh
|
|
21
|
+
echo $ACME_DIR/acme.sh $OPTIONS
|
|
20
22
|
fi
|
|
21
23
|
sum=$(expr 1 + $sum)
|
|
22
24
|
done
|
package/bin/install
CHANGED
|
@@ -21,7 +21,10 @@ fi
|
|
|
21
21
|
source $base/bin/env
|
|
22
22
|
source $base/bin/jitsi
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
debconf-set-selections $base/bin/preset-jitsi
|
|
25
|
+
if [ "$SKIP_JITSI" = "" ]; then
|
|
26
|
+
install_jitsi
|
|
27
|
+
fi
|
|
25
28
|
|
|
26
29
|
protect_dir $DRUMEE_RUNTIME_DIR "no" "mkdir"
|
|
27
30
|
protect_dir $DRUMEE_DATA_DIR "yes" "mkdir"
|
package/bin/jitsi
CHANGED
|
@@ -107,7 +107,7 @@ function install_jitsi() {
|
|
|
107
107
|
# Jitsi package
|
|
108
108
|
echo Checking jitsi-meet packages
|
|
109
109
|
installed=$(dpkg -l | egrep "^ii +jitsi-meet ")
|
|
110
|
-
if [ "$installed" = "" ]; then
|
|
110
|
+
if [ "$installed" = "" -o "$FORCE_INSTALL" = "yes" ]; then
|
|
111
111
|
key=/etc/apt/trusted.gpg.d/jitsi-key.gpg
|
|
112
112
|
if [ ! -f $key ]; then
|
|
113
113
|
curl -sS https://download.jitsi.org/jitsi-key.gpg.key | gpg --dearmor | tee j$key >/dev/null 2>&1
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ root /usr/share/jitsi-meet;
|
|
|
10
10
|
ssi on;
|
|
11
11
|
ssi_types application/x-javascript application/javascript;
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
index index.html index.htm;
|
|
14
14
|
error_page 404 /static/404.html;
|
|
15
15
|
|
|
16
16
|
# Security headers
|
|
@@ -37,7 +37,7 @@ location = /external_api.js {
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
ensure all static content can always be found first
|
|
40
|
+
# ensure all static content can always be found first
|
|
41
41
|
location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$ {
|
|
42
42
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
43
43
|
alias /usr/share/jitsi-meet/$1/$2;
|
|
@@ -53,8 +53,8 @@ VirtualHost "<%= jitsi_domain %>"
|
|
|
53
53
|
VirtualHost "guest.<%= jitsi_domain %>"
|
|
54
54
|
authentication = "anonymous"
|
|
55
55
|
ssl = {
|
|
56
|
-
key = "/usr/share/acme/certs
|
|
57
|
-
certificate = "/usr/share/acme/certs
|
|
56
|
+
key = "/usr/share/acme/certs/<%= jitsi_domain %>_ecc/<%= jitsi_domain %>.key";
|
|
57
|
+
certificate = "/usr/share/acme/certs/<%= jitsi_domain %>_ecc/<%= jitsi_domain %>.cer";
|
|
58
58
|
}
|
|
59
59
|
modules_enabled = {
|
|
60
60
|
"bosh";
|
|
@@ -71,13 +71,13 @@ VirtualHost "guest.<%= jitsi_domain %>"
|
|
|
71
71
|
"av_moderation";
|
|
72
72
|
"turncredentials";
|
|
73
73
|
}
|
|
74
|
-
main_muc = "muc
|
|
75
|
-
lobby_muc = "lobby
|
|
76
|
-
breakout_rooms_muc = "breakout
|
|
77
|
-
speakerstats_component = "speakerstats
|
|
78
|
-
conference_duration_component = "conferenceduration
|
|
79
|
-
end_conference_component = "endconference
|
|
80
|
-
av_moderation_component = "avmoderation
|
|
74
|
+
main_muc = "muc.<%= jitsi_domain %>"
|
|
75
|
+
lobby_muc = "lobby.<%= jitsi_domain %>"
|
|
76
|
+
breakout_rooms_muc = "breakout.<%= jitsi_domain %>"
|
|
77
|
+
speakerstats_component = "speakerstats.<%= jitsi_domain %>"
|
|
78
|
+
conference_duration_component = "conferenceduration.<%= jitsi_domain %>"
|
|
79
|
+
end_conference_component = "endconference.<%= jitsi_domain %>"
|
|
80
|
+
av_moderation_component = "avmoderation.<%= jitsi_domain %>"
|
|
81
81
|
turncredentials_secret = "<%= turn_sercret %>"
|
|
82
82
|
c2s_require_encryption = false
|
|
83
83
|
|