@drumee/setup-infra 1.0.7 → 1.0.8

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/install CHANGED
@@ -4,7 +4,6 @@ set -e
4
4
  echo "Configuring Drumee Infrastructure"
5
5
  script_dir=$(dirname $(readlink -f $0))
6
6
 
7
- clean_vendor_files
8
7
 
9
8
  export base=$(dirname $script_dir)
10
9
  $base/bin/init-mail $DRUMEE_DOMAIN_NAME
@@ -20,6 +19,8 @@ fi
20
19
  source $base/bin/env
21
20
  source $base/bin/prosody
22
21
 
22
+ clean_vendor_files
23
+
23
24
  protect_dir $DRUMEE_RUNTIME_DIR "no" "mkdir"
24
25
  protect_dir $DRUMEE_DATA_DIR "yes" "mkdir"
25
26
  cd $DRUMEE_DATA_DIR
@@ -1,8 +1,9 @@
1
- #!/bin/bash
1
+ #!/bin/sh
2
2
  if [ -e /etc/drumee/drumee.sh ]; then
3
3
  if [ -e /etc/prosody/defaults/credentials.sh ]; then
4
- source /etc/drumee/drumee.sh
5
- source /etc/prosody/defaults/credentials.sh
4
+ . /etc/drumee/drumee.sh
5
+ . /etc/prosody/defaults/credentials.sh
6
+ . /usr/share/debconf/confmodule
6
7
  turn_secret=$(grep static-auth-secret /etc/turnserver.conf | sed -E "s/^.+=//")
7
8
  db_set jitsi-videobridge/jvb-hostname $JITSI_DOMAIN
8
9
  db_set jitsi-videobridge/jvbsecret $JVB_PASSWORD
package/index.js CHANGED
@@ -227,7 +227,7 @@ function makeData(opt) {
227
227
  if (/.+\+$/.test(value)) {
228
228
  value = value.replace(/\+$/, data[key]);
229
229
  }
230
- data[key] = value || fallback;
230
+ data[key] = value.trim() || fallback;
231
231
  }
232
232
  }
233
233
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drumee/setup-infra",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Drumee Infrastructure Setup Utilities",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -7,10 +7,10 @@
7
7
  location / {
8
8
  index /-/;
9
9
 
10
- location ~ (.+)\.(.+)$ {
10
+ location ~ (.+)$ {
11
11
  add_header Cache-Control max-age=31536000;
12
12
  fastcgi_hide_header Set-Cookie;
13
13
  add_header Access-Control-Allow-Origin <%= domain %>;
14
- rewrite /(.+)$ <%= public_ui_root %>/svc/media.raw?p=$1&d=inline;
14
+ rewrite /(.+)$ <%= public_ui_root %>/svc/media.raw?p=/$1&d=inline;
15
15
  }
16
16
  }
@@ -4,7 +4,9 @@ charset utf8;
4
4
 
5
5
  client_max_body_size 0;
6
6
 
7
- root /usr/share/jitsi-meet;
7
+ # Disable direct access to jitsi UI
8
+ # root /usr/share/jitsi-meet;
9
+ root <%= static_dir %>;
8
10
 
9
11
  # ssi on with javascript for multidomain variables in config.js
10
12
  ssi on;
@@ -24,6 +24,13 @@ server {
24
24
  root <%= server_dir %>;
25
25
  server_name <%= domain %>;
26
26
  client_max_body_size <%= max_body_size %>;
27
+
28
+ # Security headers
29
+ add_header X-Content-Type-Options nosniff;
30
+ add_header X-XSS-Protection "1; mode=block";
31
+
32
+ set $prefix "";
33
+
27
34
  include /etc/drumee/ssl/main.conf;
28
35
  include /etc/drumee/infrastructure/routes/*.conf;
29
36
  include /etc/drumee/infrastructure/internals/*.conf;
@@ -0,0 +1,32 @@
1
+
2
+ # -------------------------------------------------------------
3
+ # !!!!!!! DO NOT EDIT !!!!!!!!
4
+ # Config file automatically generated by <setup-infra>
5
+ # Purpose : Provide Nginx config to a specific server
6
+ # Server name : loopback
7
+ # Date : <%= date %>
8
+ # -------------------------------------------------------------
9
+
10
+
11
+ proxy_cache_path <%= cache_dir %>/loopback levels=1:2 keys_zone=loopback_keys_zone:10m max_size=10g inactive=60m;
12
+ server {
13
+ listen 127.0.0.1:80;
14
+ server_name _;
15
+ #
16
+ root <%= server_dir %>;
17
+ server_name _;
18
+ client_max_body_size <%= max_body_size %>;
19
+
20
+ # Security headers
21
+ add_header X-Content-Type-Options nosniff;
22
+ add_header X-XSS-Protection "1; mode=block";
23
+
24
+ set $prefix "";
25
+
26
+ include /etc/drumee/ssl/main.conf;
27
+ include /etc/drumee/infrastructure/routes/*.conf;
28
+ include /etc/drumee/infrastructure/internals/*.conf;
29
+ include /etc/drumee/infrastructure/mfs.conf;
30
+ }
31
+
32
+
package/custom.sh DELETED
@@ -1,21 +0,0 @@
1
- apt install -y git
2
- mkdir /root/reinstall
3
- cd /root/reinstall
4
- curl -O https://download.jitsi.org/stable/jitsi-videobridge2_2.3-92-g64f9f34f-1_all.deb
5
- curl -O https://download.jitsi.org/stable/jicofo_1.0-1075-1_all.deb
6
- curl -O https://download.jitsi.org/stable/jitsi-meet-prosody_1.0.7874-1_all.deb
7
- curl -O https://download.jitsi.org/stable/jitsi-meet-turnserver_1.0.7874-1_all.deb
8
- curl -O https://download.jitsi.org/stable/jitsi-meet-web-config_1.0.7874-1_all.deb
9
- curl -O https://download.jitsi.org/stable/jitsi-meet-web_1.0.7874-1_all.deb
10
- curl -O https://download.jitsi.org/stable/jitsi-meet_2.0.9364-1_all.deb
11
-
12
-
13
- apt install /root/reinstall/jicofo_1.0-1075-1_all.deb -y
14
- apt install /root/reinstall/jitsi-videobridge2_2.3-92-g64f9f34f-1_all.deb -y
15
- apt install /root/reinstall/jitsi-meet-web-config_1.0.7874-1_all.deb -y
16
- apt install /root/reinstall/jitsi-meet-web_1.0.7874-1_all.deb -y
17
- apt install /root/reinstall/jitsi-meet-prosody_1.0.7874-1_all.deb -y
18
- apt install /root/reinstall/jitsi-meet-turnserver_1.0.7874-1_all.deb -y
19
- apt install /root/reinstall/jitsi-meet_2.0.9364-1_all.deb -y
20
-
21
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjPCTSuU0ThzsJ3Tp6qP2jQQz2QtV5j4+U3tPgSleqgy3Dkb99jeWcZfknmcNibpxjynw8QrT/tQ+WxUOB0xh/nC0YvWQnPE7rguBQ9gjvOVaTYaVcMSzv+fSckGPDI5KuPpmodmtuvNKw5R8lFlK+2TkOHzZ4WU9xFwZwvgVCuZJbhBOPJWOCW3abqhAZXRYwAvC07wEtivKJ5zeFEPFhDea/wjHxWX0iXTc6utpCxwoydbfDc19cCIqOUHcimbAuoa8aDtc2qt0N2zB/Q2yko3p8+00RouZ41xYXe++JGNbwsvTpogm46H5hj/TuunrLnLApHGWBkw59T6HMGPtp somanos@chrouk.local