Girish Ramakrishnan
2051b3921b
Use constants.ADMIN_LOCATION instead
...
part of #621
2019-03-09 20:06:12 -08:00
Girish Ramakrishnan
66b02b58b6
make notifications.alert take a title
...
the title is better when it's a bit more dynamic
2019-03-08 16:59:48 -08:00
Girish Ramakrishnan
7bce63d74e
Add API to get crash logs
2019-03-01 16:33:35 -08:00
Girish Ramakrishnan
a8735a6465
Generate detailed mail configuration error notification
2019-03-01 11:15:05 -08:00
Girish Ramakrishnan
fc7be2ac1a
Clear notifications if mail/backup/disk space situation changes
2019-02-28 15:13:47 -08:00
Girish Ramakrishnan
27f6177fc9
do not restart mail container when not activated
...
provision code is calling setDashboardDomain() which is restarting
the mail server
2019-02-27 11:46:03 -08:00
Girish Ramakrishnan
7a0d4ad508
Make reboot required check server side
2019-02-19 09:20:20 -08:00
Girish Ramakrishnan
1269104112
rbl.status is only valid if rbl test was run
2019-02-15 12:22:39 -08:00
Girish Ramakrishnan
e348a1d2c5
make the view a link
2019-02-13 15:15:32 -08:00
Girish Ramakrishnan
92e1553eed
Fullstop
2019-02-11 12:58:38 -08:00
Girish Ramakrishnan
5166cd788b
More information
2019-02-11 09:30:46 -08:00
Girish Ramakrishnan
de89d41e72
Make the notifications more informative
2019-02-10 21:00:32 -08:00
Girish Ramakrishnan
2105b2ecdb
Run MX and DMARC checks only if mail is enabled
2019-02-06 15:23:41 -08:00
Girish Ramakrishnan
d05bf9396d
Periodically check mail status as well
...
Fixes #612 , #575
2019-02-06 14:58:45 -08:00
Girish Ramakrishnan
31d0a5c40e
run system checks immediately post activation
...
this will notify about backup configuration
2019-02-06 11:15:46 -08:00
Girish Ramakrishnan
89446d56e0
Fix exports
2019-02-06 11:09:34 -08:00
Johannes Zellner
abc867935b
Add backup configuration check together with out of disk check cron job
2019-02-06 15:47:56 +01:00
Girish Ramakrishnan
7e6ce1a1ef
Add event to track dashboard update
2019-02-04 20:42:28 -08:00
Girish Ramakrishnan
9f5471ee85
Update mail DNS records on dashboard switch
...
Fixes #613
2019-02-04 20:18:01 -08:00
Girish Ramakrishnan
873ebddbd0
write admin config on dashboard switch
2019-01-16 21:51:06 -08:00
Girish Ramakrishnan
810f5e7409
Fix line param parsing
...
lines is a positive integer or -1 to disable line limiting. The
default value is 10 if no argument is given.
Fixes #604
2019-01-08 13:23:29 -08:00
Girish Ramakrishnan
65210ea91d
rework dns api to take domainObject
...
the DNS backends require many different params, it's just easier to
pass them all together and have backends do whatever.
For example, route53 API requires the fqdn. Some other backends require just the
"part" to insert.
* location - location in the database (where app is installed)
* zoneName - the dns zone name
* domain - domain in the database (where apps are installed into)
* name/getName() - this returns the name to insert in the DNS based on zoneName/location
* fqdn - the fully resolved location in zoneName
verifyDnsConfig also takes a domain object even if it's not in db just so that we can
test even existing domain objects, if required. The IP param is removed since it's not
required.
for caas, we also don't need the fqdn hack in dnsConfig anymore
2019-01-04 22:38:12 -08:00
Girish Ramakrishnan
16c1622b1f
Make domains.fqdn take config and domain separately
...
This way it can be used in the dns backends which don't have the domain object
2019-01-04 14:11:29 -08:00
Girish Ramakrishnan
a961407379
Fix setup and restore to have a task style API
2018-12-16 11:02:49 -08:00
Girish Ramakrishnan
bdf9671280
Split dashboard dns setup and db operations
...
The dns setup is now a task that we can wait on. Once that task
is done, we can do db operations to switch the domain in a separate
route
2018-12-14 09:57:28 -08:00
Girish Ramakrishnan
63e3560dd7
on startup, only re-generate the admin config
...
should not try to get certificates on startup
2018-12-14 09:20:06 -08:00
Girish Ramakrishnan
f0dbf2fc4d
Make reverseProxy.configureAdmin not use config
...
This way we can set things up before modifying config for dashboard switch
2018-12-13 21:42:48 -08:00
Girish Ramakrishnan
c7da090882
tasks: remove auditSource from start/stop
2018-12-11 09:22:13 -08:00
Johannes Zellner
ee609c8ef0
renew certs task also needs an auditSource
2018-12-11 13:10:32 +01:00
Johannes Zellner
6891ce2bc8
Fix typos
2018-12-11 12:33:35 +01:00
Girish Ramakrishnan
d2f4b68c9f
Make certificate renewal a task
2018-12-10 20:48:10 -08:00
Girish Ramakrishnan
cfb68a0511
setAdmin -> setDashboardDomain
2018-12-08 18:19:49 -08:00
Girish Ramakrishnan
515ee891d3
refactor code to allow admin domain to be set
2018-12-07 16:15:21 -08:00
Johannes Zellner
cb6699eeed
Add api to check if the server needs a reboot
2018-11-26 08:19:24 +01:00
Girish Ramakrishnan
802011bb7e
Fix args to shell.sudo
2018-11-25 14:57:51 -08:00
Girish Ramakrishnan
e04b7b55b0
Remove upgrade flag
...
This is not used since ages since we changed our update methodology
2018-11-20 10:29:54 -08:00
Girish Ramakrishnan
305a3c94d0
Rework the progress API to use the task progress
2018-11-19 21:06:44 -08:00
Johannes Zellner
de44c63557
box now also logs to a a file instead of journald
2018-11-16 13:05:11 +01:00
Girish Ramakrishnan
1766c3f6d6
lint
2018-11-11 10:12:51 -08:00
Girish Ramakrishnan
aae259479f
move configure webadmin and status out of setup logic
2018-11-11 09:56:01 -08:00
Girish Ramakrishnan
b640a053e3
Always generate webadmin config on startup
2018-11-11 08:19:24 -08:00
Girish Ramakrishnan
6ec36c9605
Do not crash if platform.start fails
...
With this change, the box code always starts up even if nginx fails,
docker fails etc.
2018-11-10 18:34:37 -08:00
Girish Ramakrishnan
bd2b03876b
Add users.isActivated
...
it's easier to see where we do activation checks
2018-11-10 18:09:00 -08:00
Girish Ramakrishnan
0c5cb9c98f
Remove settings.initialize/uninitialize
...
this simplifies the startup sequence
2018-11-10 14:55:23 -08:00
Girish Ramakrishnan
42c1f8bb04
start most cron jobs only after activation
...
Importing the db might take some time. If a cron runs in the middle,
it crashes.
TypeError: Cannot read property 'domain' of undefined
at Object.fqdn (/home/yellowtent/box/src/domains.js:126:111)
at /home/yellowtent/box/src/apps.js:460:36
at /home/yellowtent/box/node_modules/async/dist/async.js:3110:16
at replenish (/home/yellowtent/box/node_modules/async/dist/async.js:1011:17)
at /home/yellowtent/box/node_modules/async/dist/async.js:1016:9
at eachLimit$1 (/home/yellowtent/box/node_modules/async/dist/async.js:3196:24)
at Object.<anonymous> (/home/yellowtent/box/node_modules/async/dist/async.js:1046:16)
at /home/yellowtent/box/src/apps.js:458:19
at /home/yellowtent/box/src/appdb.js:232:13
at Query.args.(anonymous function) [as _callback] (/home/yellowtent/box/src/database.js
2018-09-26 14:56:45 -07:00
Girish Ramakrishnan
e0cd7999eb
Make spaces an edition instead of setting
2018-08-28 18:31:48 -07:00
Johannes Zellner
964da5ee52
Send the edition in the config route
2018-08-28 18:05:45 -07:00
Girish Ramakrishnan
1cf5807fb9
Send spaces config in config route
...
This is here because normal users cannot access settings route
2018-08-03 18:26:16 -07:00
Girish Ramakrishnan
d8257c4745
refactor updater logic into updater.js
2018-07-31 20:20:10 -07:00
Girish Ramakrishnan
35c9e99102
Move the update info into separate route (since it is sensitive)
2018-06-28 17:50:27 -07:00