girish@cloudron.io
d43810fea9
add comment on why we add naked domain for custom domains
2016-03-21 13:50:26 -07:00
girish@cloudron.io
cbb34005c6
restoreKey -> filename
2016-03-09 14:23:42 -08:00
Girish Ramakrishnan
21d4cc9cb2
getAllPaged -> getPaged
2016-03-08 18:10:39 -08:00
girish@cloudron.io
7996b32022
add backups to the database
...
ideally, these should be done _after_ the backup is successful and not when
the backup url is generated.
we had a discussion on why need backupdb to start with. Some rationale includes:
1. we can use it as a FK constraint (like make sure you delete backups when you delete app)
2. have labels for backups
3. dependancy relation from box backup to apps
4. s3 reverse sort is little painful and requires us to get all items in bulk and sort in JS
(also requires us to change our backup filename format)
5. any metadata storage requires database
The cons include:
1. s3 and this db go out of sync
2. db entry is useless if s3 file is missing
2016-03-08 08:42:00 -08:00
Girish Ramakrishnan
4dd82d10ad
backup: ensure same timestamp for app data and config
2016-03-07 12:13:54 -08:00
Johannes Zellner
2888a85081
Remove cloudron side migrate api
...
This is some old api when we had a migrate view in the webadmin
This is entirely handled on the appstore for now.
2016-01-29 14:17:33 +01:00
girish@cloudron.io
48305f0e95
call retire after sending off the http response
2016-01-26 10:29:32 -08:00
girish@cloudron.io
8170b490f2
add retire.sh
...
this is a sudo script that retires the box
2016-01-26 09:37:25 -08:00
girish@cloudron.io
33bc1cf7d9
Add cloudron.retire
2016-01-26 08:39:42 -08:00
girish@cloudron.io
02d17dc2e4
fix typo
2016-01-25 16:51:14 -08:00
girish@cloudron.io
4b54e776cc
reset update info after short-circuit
2016-01-25 16:46:54 -08:00
girish@cloudron.io
ba6f05b119
Clear the progress for web ui to work
2016-01-25 16:35:03 -08:00
girish@cloudron.io
1d9ae120dc
strip prerelease from box version and not the released version
2016-01-25 16:27:22 -08:00
girish@cloudron.io
3ce841e050
add test for checkDiskSpace
2016-01-25 16:03:12 -08:00
girish@cloudron.io
436fc2ba13
checking capacity does not work well for /
...
Just check if we have around 1.25GB left.
/root (data image file) is 26G
/home (our code) is 1G
/apps.swap is 2G
/backup.swap is 1G
/var is 6.2G (docker)
Rest of the system is 1.5G
Fixes #577
2016-01-25 15:56:46 -08:00
girish@cloudron.io
ac3681296e
short-circuit updates from prerelease to release version
...
Fixes #575
2016-01-25 14:48:12 -08:00
girish@cloudron.io
de7a6abc50
Check for out of disk space
...
Fixes #567
2016-01-22 17:46:23 -08:00
girish@cloudron.io
ee705eb979
Add displayName to create user and activate routes
2016-01-19 23:34:49 -08:00
girish@cloudron.io
989ab3094d
Set initial progress so that tools can wait on it
2016-01-14 11:34:49 -08:00
girish@cloudron.io
70ac18d139
add internal route to update the cloudron
...
need to way to trigger updates of cloudron using the caas tool
2016-01-14 11:13:02 -08:00
girish@cloudron.io
3120eca721
status api should set provider
2016-01-13 16:09:36 -08:00
Johannes Zellner
600f061e47
The box tarball is now public, no need for a signed url
2016-01-12 16:50:34 +01:00
Johannes Zellner
9860489f05
Use new getIP() api in cloudron.js
2016-01-05 12:16:48 +01:00
Johannes Zellner
bad28c60ae
Do not rely on the VPS name but just get the memory from the system
2015-12-31 10:30:42 +01:00
Johannes Zellner
a9eda2176e
Only send heartbeats and fetch cloudron details if we have a token
2015-12-29 17:43:54 +01:00
Johannes Zellner
584b7790e4
Get the cloudron vps provider from config
2015-12-29 11:24:34 +01:00
Johannes Zellner
8b1d3e5fba
Send provider field with cloudron config
2015-12-29 10:53:22 +01:00
Girish Ramakrishnan
7c975384cd
better error messages
2015-12-17 19:35:52 -08:00
Girish Ramakrishnan
a4ea693c3c
update superagent
...
the latest superchanged changed the meaning of 'error'. Previously,
error implied a network error. With the latest superagent, error means
a REST api error i.e 4xx, 5xx are flagged as errors.
error && !error.response means network error
2015-12-15 09:53:37 -08:00
Girish Ramakrishnan
22634b4ceb
tlsConfig is part of the database
2015-12-12 15:43:42 -08:00
Girish Ramakrishnan
fe94190c2f
do not save certs in database
2015-12-12 13:29:10 -08:00
Johannes Zellner
23c04fb10b
Use console.error() to report update errors
2015-11-26 12:04:39 +01:00
Johannes Zellner
0c5d6b1045
Set app backup progress only after we check the error
2015-11-26 12:00:44 +01:00
Girish Ramakrishnan
5c9abfe97a
debug output the changeIds
2015-11-19 17:49:30 -08:00
Girish Ramakrishnan
ffee084d2b
new format of provisioning info
2015-11-12 14:22:43 -08:00
Girish Ramakrishnan
0966bd0bb1
use debug instead of console.error
2015-11-09 19:10:33 -08:00
Girish Ramakrishnan
af1d1236ea
expose api server origin to determine if the box is dev/staging/prod
2015-11-09 17:50:09 -08:00
Girish Ramakrishnan
d25d423ccd
remove legacy update params
...
these are now part of settings
2015-11-07 22:07:25 -08:00
Girish Ramakrishnan
8df7f17186
load backup config from settingsdb
2015-11-07 22:06:09 -08:00
Girish Ramakrishnan
05d4ad3b5d
read new format of restore keys
2015-11-07 17:53:54 -08:00
Girish Ramakrishnan
cc6f726f71
change backup provider to caas
2015-11-07 09:17:58 -08:00
Girish Ramakrishnan
a4923f894c
prepare for new backupConfig
2015-11-07 00:26:12 -08:00
Girish Ramakrishnan
766fc49f39
setup dkim records for custom domain
2015-11-05 09:30:23 -08:00
Girish Ramakrishnan
ccde1e51ad
debug any failure
2015-11-04 14:28:26 -08:00
Girish Ramakrishnan
03ec940352
Add space in spf record
2015-11-04 14:22:56 -08:00
Girish Ramakrishnan
b6897a4577
Revert "Add isConfigured fallback for caas cloudrons"
...
This reverts commit 338f68a0f3 .
We will send dns config from appstore instead
2015-11-04 08:28:21 -08:00
Johannes Zellner
f7225523ec
Add isConfigured fallback for caas cloudrons
2015-11-04 12:53:16 +01:00
Girish Ramakrishnan
9d9509525c
listen on timezone key only when configured
2015-11-03 16:11:24 -08:00
Girish Ramakrishnan
b1dbb3570b
Add configured event
...
Cloudron code paths like cron/mailer/taskmanager now wait for configuration
to be complete before doing anything.
This is useful when a cloudron is moved from a non-custom domain to a custom domain.
In that case, we require route53 configs.
2015-11-03 16:06:38 -08:00
Girish Ramakrishnan
c075160e5d
Remove event listener
2015-11-03 15:22:02 -08:00