@drumee/setup-infra 1.0.0
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/LICENSE +661 -0
- package/README.md +3 -0
- package/configs/etc/cron.d/drumee +6 -0
- package/configs/etc/postfix/master.cf +137 -0
- package/congigure/init/acme +69 -0
- package/congigure/init/mail +16 -0
- package/congigure/init/named +27 -0
- package/congigure/menu/menu -tmp +144 -0
- package/congigure/menu/menu-install +147 -0
- package/congigure/menu/menu-reinstall +15 -0
- package/congigure/prepare +10 -0
- package/congigure/preset/jitsi +9 -0
- package/congigure/setup-infra +58 -0
- package/congigure/setup-schemas +57 -0
- package/congigure/start +29 -0
- package/congigure/utils/configure +56 -0
- package/congigure/utils/dependencies +90 -0
- package/congigure/utils/jitsi +122 -0
- package/congigure/utils/misc +77 -0
- package/congigure/utils/prompt.sh +35 -0
- package/congigure/utils/setup-versions +7 -0
- package/index.js +572 -0
- package/package.json +30 -0
- package/template.js +453 -0
- package/templates/env/application.json.tpl +0 -0
- package/templates/env/logrotate.tpl +7 -0
- package/templates/etc/bind/named.conf.local +13 -0
- package/templates/etc/bind/named.conf.log +105 -0
- package/templates/etc/bind/named.conf.options +33 -0
- package/templates/etc/dkimkeys/dkim.key +1 -0
- package/templates/etc/drumee/conf.d/conference.json.tpl +9 -0
- package/templates/etc/drumee/conf.d/drumee.json.tpl +7 -0
- package/templates/etc/drumee/conf.d/exchange.json.tpl +4 -0
- package/templates/etc/drumee/conf.d/myDrumee.json.tpl +16 -0
- package/templates/etc/drumee/credential/db.json.tpl +6 -0
- package/templates/etc/drumee/credential/email.json.tpl +12 -0
- package/templates/etc/drumee/credential/ovh/dns.json.tpl +6 -0
- package/templates/etc/drumee/credential/ovh/dns.sh.tpl +7 -0
- package/templates/etc/drumee/credential/redis.json.tpl +6 -0
- package/templates/etc/drumee/credential/sms.json.tpl +6 -0
- package/templates/etc/drumee/dnsapi.sh.tpl +28 -0
- package/templates/etc/drumee/drumee.sh.tpl +43 -0
- package/templates/etc/drumee/env.json +29 -0
- package/templates/etc/drumee/infrastructure/internals/accel.conf.tpl +47 -0
- package/templates/etc/drumee/infrastructure/mfs.conf.tpl +16 -0
- package/templates/etc/drumee/infrastructure/platform.json.tpl +16 -0
- package/templates/etc/drumee/infrastructure/routes/main.conf.tpl +143 -0
- package/templates/etc/drumee/infrastructure/servers/tt.conf +199 -0
- package/templates/etc/drumee/ssl/main.conf.tpl +10 -0
- package/templates/etc/jitsi/jicofo/config +2 -0
- package/templates/etc/jitsi/jicofo/defaults/jicofo.conf +225 -0
- package/templates/etc/jitsi/jicofo/defaults/logging.properties +15 -0
- package/templates/etc/jitsi/jicofo/jicofo.conf.tpl +46 -0
- package/templates/etc/jitsi/jicofo/logging.properties.tpl +12 -0
- package/templates/etc/jitsi/meet.conf.tpl +131 -0
- package/templates/etc/jitsi/ssl.conf.tpl +25 -0
- package/templates/etc/jitsi/videobridge/config +2 -0
- package/templates/etc/jitsi/videobridge/defaults/jvb.conf +129 -0
- package/templates/etc/jitsi/videobridge/defaults/logging.properties +12 -0
- package/templates/etc/jitsi/videobridge/jvb.conf +67 -0
- package/templates/etc/jitsi/videobridge/logging.properties.tpl +12 -0
- package/templates/etc/jitsi/web/config.js.tpl +208 -0
- package/templates/etc/jitsi/web/defaults/default +26 -0
- package/templates/etc/jitsi/web/defaults/ffdhe2048.txt +8 -0
- package/templates/etc/jitsi/web/defaults/interface_config.js +273 -0
- package/templates/etc/jitsi/web/defaults/meet.conf +193 -0
- package/templates/etc/jitsi/web/defaults/nginx.conf +73 -0
- package/templates/etc/jitsi/web/defaults/settings-config.js +480 -0
- package/templates/etc/jitsi/web/defaults/ssl.conf +28 -0
- package/templates/etc/jitsi/web/defaults/system-config.js +60 -0
- package/templates/etc/jitsi/web/interface_config.js +273 -0
- package/templates/etc/mail/dkim.key +1 -0
- package/templates/etc/mailname +1 -0
- package/templates/etc/mysql/mariadb.conf.d/50-server.cnf +120 -0
- package/templates/etc/nginx/modules-enabled/90-turn-relay.conf +27 -0
- package/templates/etc/nginx/modules-enabled/90-turn-relay.conf.tpl +27 -0
- package/templates/etc/nginx/nginx.conf +65 -0
- package/templates/etc/nginx/sites-enabled/drumee.conf.tpl +33 -0
- package/templates/etc/nginx/sites-enabled/jitsi.conf.tpl +28 -0
- package/templates/etc/nginx/sites-enabled/turnrelay.conf.tpl +9 -0
- package/templates/etc/opendkim/KeyTable +1 -0
- package/templates/etc/postfix/main.cf +76 -0
- package/templates/etc/postfix/mysql-virtual-alias-maps.cf +5 -0
- package/templates/etc/postfix/mysql-virtual-mailbox-domains.cf +5 -0
- package/templates/etc/postfix/mysql-virtual-mailbox-maps.cf +5 -0
- package/templates/etc/prosody/conf.d/vhost.cfg.lua.tpl +162 -0
- package/templates/etc/prosody/defaults/conf.d/jitsi-meet.cfg.lua +406 -0
- package/templates/etc/prosody/defaults/credentials.sh +10 -0
- package/templates/etc/prosody/defaults/prosody.cfg.lua +225 -0
- package/templates/etc/prosody/defaults/saslauthd.conf +30 -0
- package/templates/etc/prosody/prosody.cfg.lua.tpl +203 -0
- package/templates/etc/turnserver.conf.tpl +46 -0
- package/templates/index.js +102 -0
- package/templates/schema/utils/configs.init.sql.tpl +20 -0
- package/templates/schema/utils/configs.update.sql.tpl +19 -0
- package/templates/server/ecosystem.config.js.tpl +8 -0
- package/templates/var/lib/bind/domain.tpl +70 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
$TTL 3D
|
|
2
|
+
$ORIGIN <%= domain %>.
|
|
3
|
+
;
|
|
4
|
+
@ IN SOA ns1.<%= domain %>. master.<%= domain %>. (
|
|
5
|
+
<%= serial %> ; serial, today date + today serial
|
|
6
|
+
1H ; refresh, seconds
|
|
7
|
+
2H ; retry, seconds
|
|
8
|
+
4W ; expire, seconds
|
|
9
|
+
1D ) ; minimum, seconds
|
|
10
|
+
;
|
|
11
|
+
;
|
|
12
|
+
@ 60 IN NS ns1.<%= domain %>.
|
|
13
|
+
@ 60 IN NS ns2.<%= domain %>.
|
|
14
|
+
;
|
|
15
|
+
<% if (typeof(public_ip4) !== "undefined" && public_ip4 != "" ) { %>
|
|
16
|
+
; A records
|
|
17
|
+
@ 60 IN A <%= public_ip4 %>
|
|
18
|
+
ns1 60 IN A <%= public_ip4 %>
|
|
19
|
+
ns2 60 IN A <%= public_ip4 %>
|
|
20
|
+
smtp 60 IN A <%= public_ip4 %>
|
|
21
|
+
jit 60 IN A <%= public_ip4 %>
|
|
22
|
+
* 60 IN A <%= public_ip4 %>
|
|
23
|
+
;
|
|
24
|
+
<% } %>
|
|
25
|
+
<% if (typeof(public_ip6) !== "undefined" && public_ip6 != "" ) { %>
|
|
26
|
+
; AAAA records
|
|
27
|
+
@ 60 IN AAAA <%= public_ip6 %>
|
|
28
|
+
ns1 60 IN AAAA <%= public_ip6 %>
|
|
29
|
+
ns2 60 IN AAAA <%= public_ip6 %>
|
|
30
|
+
smtp 60 IN AAAA <%= public_ip6 %>
|
|
31
|
+
jit 60 IN AAAA <%= public_ip6 %>
|
|
32
|
+
* 60 IN AAAA <%= public_ip6 %>
|
|
33
|
+
<% } %>
|
|
34
|
+
;
|
|
35
|
+
; CNAME
|
|
36
|
+
;
|
|
37
|
+
www IN CNAME <%= domain %>.
|
|
38
|
+
;
|
|
39
|
+
; MX records
|
|
40
|
+
;
|
|
41
|
+
@ 60 IN MX 10 smtp.<%= domain %>.
|
|
42
|
+
|
|
43
|
+
; TXT records
|
|
44
|
+
_acme-challenge 60 IN TXT "acme-challenge"
|
|
45
|
+
@ 60 IN TXT "v=spf1 a ~all"
|
|
46
|
+
@ 60 IN TXT (<%= dkim_key %>)
|
|
47
|
+
;
|
|
48
|
+
;
|
|
49
|
+
; DKIM
|
|
50
|
+
smtp._domainkey 60 IN TXT (<%= dkim_key %>)
|
|
51
|
+
dkim._domainkey 60 IN TXT (<%= dkim_key %>)
|
|
52
|
+
;
|
|
53
|
+
;
|
|
54
|
+
; DMARC
|
|
55
|
+
_dmarc 60 IN TXT "v=DMARC1; p=quarantine; sp=quarantine; aspf=s"
|
|
56
|
+
;
|
|
57
|
+
;
|
|
58
|
+
; Jitsi subdomain
|
|
59
|
+
$ORIGIN <%= jitsi_domain %>.
|
|
60
|
+
;
|
|
61
|
+
<% if (typeof(public_ip4) !== "undefined" && public_ip4 != "" ) { %>
|
|
62
|
+
* 60 IN A <%= public_ip4 %>
|
|
63
|
+
<% } %>
|
|
64
|
+
<% if (typeof(public_ip6) !== "undefined" && public_ip6 != "" ) { %>
|
|
65
|
+
* 60 IN AAAA <%= public_ip6 %>
|
|
66
|
+
<% } %>
|
|
67
|
+
;
|
|
68
|
+
; TXT records
|
|
69
|
+
_acme-challenge 60 IN TXT "jit-acme-challenge"
|
|
70
|
+
|