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
Girish Ramakrishnan
fee513594f
Move sendAliveStatus to appstore.js
2017-04-13 01:07:07 -07:00
Girish Ramakrishnan
bac7d3ad84
Check for app and box updates once an hour
...
Part of #293
2017-04-12 18:48:14 -07:00
Girish Ramakrishnan
85aba589b8
Add hack to send heartbeat only after a minute of server running
2017-02-07 20:25:30 -08:00
Johannes Zellner
0b03018a7b
Add constant for special 'never' autoupdate pattern
2017-01-26 15:36:24 -08:00
Girish Ramakrishnan
ed9889af11
Add note about alive and heartbeat job
2017-01-09 11:14:11 -08:00
Johannes Zellner
05721f73cc
Fix typo
2017-01-02 13:51:58 +01:00
Johannes Zellner
a38097e2f5
Refresh dns if dynamic dns is enabled
2017-01-02 13:14:03 +01:00
Girish Ramakrishnan
e159cdad5b
Remove activated event
...
Simply go ahead and create cron jobs
2016-12-28 14:21:58 -08:00
Girish Ramakrishnan
22ae39323b
use Math.floor instead of parseInt
2016-12-19 11:56:35 -08:00
Johannes Zellner
420a57aef9
Randomize appstore requests for updates and alive status
...
Fixes #137
2016-12-19 16:55:39 +01:00
Johannes Zellner
40fa3818cc
Send alive beacon every hour
2016-11-16 15:01:23 +01:00
Johannes Zellner
2dc06a01b6
Add cronjob to send alive signal
2016-11-15 15:25:21 +01:00
Johannes Zellner
9ab845ef8a
Set the backup janitor back to every 30min
2016-10-11 10:55:00 +02:00
Johannes Zellner
d7ea06e80e
Simply remove all backups up to the last to when using filesystem
...
backend
2016-10-11 10:31:21 +02:00
Johannes Zellner
e2c206b755
Add cron job stub for backup cleaning in janitor
2016-10-05 17:19:53 +02:00
Girish Ramakrishnan
98facf2a3c
delete eventlog older than 7 days
2016-07-25 12:54:27 -07:00
Johannes Zellner
f0f01453ec
Make the backup cronjob run every 4 hours again
...
This only calls ensureBackup() which in turn would only
trigger one once per day
2016-07-06 14:54:31 +02:00
Johannes Zellner
8769a1d15b
Only backup once per day
2016-06-28 12:13:51 +02:00
Girish Ramakrishnan
a4e73be834
pass auditSource for certificate renewal
2016-06-02 18:54:45 -07:00
Girish Ramakrishnan
6be0d0814d
pass auditSource from cron.js
2016-06-02 18:51:50 -07:00
Girish Ramakrishnan
e30d71921e
pass auditSource for app autoupdater
2016-06-02 18:49:56 -07:00
Girish Ramakrishnan
a49c78f32c
make box autoupdate generate eventlog
2016-06-02 18:47:09 -07:00
Girish Ramakrishnan
322e9faee7
rework backup code
...
move all the backup code into backups.js
2016-04-10 20:41:08 -07:00