Johannes Zellner
d0a373cb15
Refresh dns records for dynamic dns setting every hour
...
Often home IPs change at the full hour, so we give it 5min to settle
2019-08-23 16:20:26 +02:00
Girish Ramakrishnan
b301e5b151
Add dockerDataDisk to disks response
2019-08-19 14:14:13 -07:00
Girish Ramakrishnan
ee9636b496
move use of TEST and CLOUDRON to constants
2019-07-26 10:13:20 -07:00
Girish Ramakrishnan
a7d2098f09
Add option to skip backup before update
2019-05-12 13:28:53 -07:00
Girish Ramakrishnan
b0fb989be0
caas: remove heartbeat
2019-05-08 15:24:37 -07:00
Johannes Zellner
84d8d4a745
Remove digest from cron
2019-05-08 12:16:50 +02:00
Girish Ramakrishnan
cd6d97c3eb
Fix onTick handler
2019-04-28 15:55:01 -07:00
Girish Ramakrishnan
3bcab14de1
caas: make heartbeat not error if not configured yet
...
the heartbeat errors when the domain is setup but the restore/setup call
has not been invoked yet from the caas sever
2019-04-26 12:53:10 -07:00
Girish Ramakrishnan
39c0409d42
only notify automated backup failures
2019-03-25 15:15:35 -07:00
Girish Ramakrishnan
6bdf2e38cc
remove query admins from mailer code
2019-03-10 16:28:17 -07:00
Girish Ramakrishnan
a9d6ac29f1
make funcs take proper callbacks
2019-03-07 14:27:23 -08:00
Girish Ramakrishnan
6fd1205681
settings value is a variant
2019-03-04 15:45:04 -08:00
Girish Ramakrishnan
144c1d4e2f
remove eventemitter pattern
...
the main issue is that ee pattern does not work across processes.
with task logic, this complicates things
2019-03-04 10:25:18 -08:00
Girish Ramakrishnan
c361ab954d
Indicate how often status check is run
2019-03-01 11:30:51 -08:00
Girish Ramakrishnan
76255c0dd4
Typo
2019-02-28 15:22:55 -08:00
Girish Ramakrishnan
65c8000f66
rename function to just "send"
2019-02-20 09:11: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
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
79f9180f6b
run backup cleanup as a task
2019-01-10 16:07:06 -08:00
Girish Ramakrishnan
a536e9fc4b
track last oom time using a global variable
...
because it was a local variable, we were just sending out oom mails
like crazy
also, fixes an issue that if docker.getEvents gets stuck because
docker does not respond then we do not do any health monitoring.
i guess this can happen if the docker API gets stuck.
2018-12-16 20:52:42 -08:00
Girish Ramakrishnan
d2f4b68c9f
Make certificate renewal a task
2018-12-10 20:48:10 -08:00
Girish Ramakrishnan
0c5cb9c98f
Remove settings.initialize/uninitialize
...
this simplifies the startup sequence
2018-11-10 14:55:23 -08:00
Girish Ramakrishnan
fcb7c3e82a
fix casing
2018-11-10 00:18:56 -08:00
Girish Ramakrishnan
a49969f2be
Move apphealthmonitor into a cron job
...
This makes sure that it only runs post activation
See also a9c1af50f7
2018-10-22 20:08:49 -07: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
ec9c96da6f
Fix comments
2018-09-04 10:48:54 -07:00
Girish Ramakrishnan
d8257c4745
refactor updater logic into updater.js
2018-07-31 20:20:10 -07:00
Johannes Zellner
d68d4295de
Remove unused require
2018-02-18 20:16:17 -08:00
Girish Ramakrishnan
05c98ccadb
Enable auto-updates for major versions
...
Cloudron is always rolling releases and we never break compat
2018-02-16 16:01:10 -08:00
Johannes Zellner
11d740682e
Split box and app autoupdate pattern settings
2018-02-06 19:25:03 +01:00
Girish Ramakrishnan
f379724128
merge certificates.js and nginx.js to reverseproxy.js
...
when certs change, we have to call into nginx anyway. since they
go hand in hand, just merge those files. modern reverse proxies
do this job integrated already.
2018-01-30 12:26:09 -08:00
Girish Ramakrishnan
9059a30b89
refactor dns logic in cloudron.js
2018-01-25 14:46:48 -08:00
Girish Ramakrishnan
c95684af1e
Move caas heartbeat code to caas.js
2018-01-02 12:47:33 -08:00
Girish Ramakrishnan
437312811d
wrap seconds
2017-11-27 15:41:37 -08:00
Girish Ramakrishnan
ab2f2c9aab
Remove setTimeout from cron.js
...
this causes scripts to not end since the timeout is not killed
2017-11-27 13:43:25 -08:00
Girish Ramakrishnan
8b11692e37
cron: ensure all jobs are cleaned up
2017-11-27 12:44:04 -08:00
Girish Ramakrishnan
a8c64bf9f7
Clarify heartbeat code
...
heartbeats are not sent for self-hosted cloudrons (only managed ones)
2017-11-02 10:26:21 -07:00
Girish Ramakrishnan
f9973e765c
Add backup cleanup eventlog
2017-10-01 10:35:50 -07:00
Girish Ramakrishnan
be03dd0821
remove unused require
2017-09-18 10:38:26 -07:00
Girish Ramakrishnan
1b979ee1e9
Send rbl status as part of email check
2017-09-13 23:58:54 -07:00
Girish Ramakrishnan
322be9e5ba
Add ip blacklist check
...
Fixes #431
2017-09-08 13:29:32 -07:00
Girish Ramakrishnan
bd52068695
Return error object instead of false
2017-07-31 11:57:23 -07:00
Johannes Zellner
4cd0e4d38d
Fix digest cron schedule to no run every hour on wednesdays
2017-07-26 10:52:12 +02:00
Johannes Zellner
99d8baf36f
Add cron job to send email digest
2017-07-22 17:44:15 +02:00
Girish Ramakrishnan
23532eafea
Fix path to version
2017-06-07 20:31:18 -07:00
Johannes Zellner
daa4c66e7f
Do not perform automatic updates for major platform version
2017-06-05 18:06:00 +02:00
Girish Ramakrishnan
82e53bce36
ensure backups and clean them every 6 hours
...
also, make sure they don't run at the same time.
2017-05-30 16:04:32 -07:00
Johannes Zellner
4703f1afda
woops Revert "WIP"
...
This reverts commit ca7f80414e .
2017-04-24 16:18:01 +02:00
Johannes Zellner
ca7f80414e
WIP
2017-04-24 11:41:45 +02:00
Girish Ramakrishnan
aeba8e8fd2
Use retentionSecs to cleanup backups
...
Part of #310
2017-04-23 19:34:00 -07:00