@drumee/setup-infra 1.0.23 → 1.0.25

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/index.js CHANGED
@@ -26,8 +26,8 @@ let {
26
26
  DRUMEE_DESCRIPTION,
27
27
  DRUMEE_DOMAIN_NAME,
28
28
  DRUMEE_HTTP_PORT,
29
- DRUMEE_LOCAL_PORT,
30
29
  DRUMEE_HTTPS_PORT,
30
+ DRUMEE_LOCAL_PORT,
31
31
  MAIL_USER,
32
32
  MAX_BODY_SIZE,
33
33
  NSUPDATE_KEY,
@@ -36,6 +36,7 @@ let {
36
36
  PRIVATE_IP4,
37
37
  PRIVATE_IP6,
38
38
  PUBLIC_IP4,
39
+ USE_JITSI,
39
40
  PRIVATE_IF4,
40
41
  PUBLIC_IP6,
41
42
  STORAGE_BACKUP,
@@ -352,6 +353,7 @@ function getSysConfigs() {
352
353
  ["db_dir", DRUMEE_DB_DIR, '/srv/db'],
353
354
  ["domain_desc", DRUMEE_DESCRIPTION, 'My Drumee Box'],
354
355
  ["jitsi_root_dir", '/usr/share/jitsi-meet'],
356
+ ["use_jitsi", USE_JITSI],
355
357
  ["max_body_size", MAX_BODY_SIZE, '10G'],
356
358
  ["nsupdate_key", NSUPDATE_KEY, nsupdate_key],
357
359
  ["private_domain", PRIVATE_DOMAIN],
@@ -365,6 +367,9 @@ function getSysConfigs() {
365
367
  ["storage_backup", backup_storage], /** Legacy */
366
368
  ]
367
369
  let data = makeData(opt);
370
+ if (args.only_infra || args.no_jitsi || !data.use_jitsi) {
371
+ data.use_jitsi = "no";
372
+ }
368
373
  if (!data) {
369
374
  exit(1);
370
375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drumee/setup-infra",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "Drumee Infrastructure Setup Utilities",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "author": "Somanos Sar <somanos@drumee.com>",
18
18
  "license": "AGPL V3",
19
19
  "dependencies": {
20
- "@drumee/server-essentials": "^1.2.0",
20
+ "@drumee/server-essentials": "^1.2.2",
21
21
  "argparse": "^2.0.1",
22
22
  "crypto": "^1.0.1",
23
23
  "jsonfile": "^5.0.0",
@@ -63,4 +63,5 @@ export DRUMEE_DB_BACKUP=<%= backup_storage %>/db
63
63
  export PUBLIC_UI_ROOT=<%= public_ui_root %>
64
64
  export PUBLIC_HTTP_PORT=<%= public_http_port %>
65
65
  export PUBLIC_HTTPS_PORT=<%= public_https_port %>
66
- export ACME_ENV_FILE=<%= acme_env_file %>
66
+ export ACME_ENV_FILE=<%= acme_env_file %>
67
+ export USE_JITSI=<%= use_jitsi %>
@@ -0,0 +1,4 @@
1
+ proxy_set_header Host $http_host;
2
+ proxy_set_header X-Real-IP $remote_addr;
3
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
4
+ proxy_set_header X-Forwarded-Proto $scheme;