Girish Ramakrishnan
3ffc2c0440
wait for 10 minutes before giving up on external domain
2016-06-21 15:15:51 -05:00
Girish Ramakrishnan
f84de690ce
pass retry options to waitForDns
2016-06-21 15:12:36 -05:00
Girish Ramakrishnan
7009b9f3ac
implement clone
2016-06-17 17:45:14 -05:00
Girish Ramakrishnan
741fe75def
fix progress message
2016-06-14 14:42:29 -07:00
Girish Ramakrishnan
26f318477b
Do not send crash logs for apptask cancellations
2016-06-14 14:13:47 -07:00
Girish Ramakrishnan
b174765992
delete unused addonsa fter backup
2016-06-13 23:07:41 -07:00
Girish Ramakrishnan
3197349058
Fix app backup before updates
...
we were passing the current manifest to the backup code which meant that
the app version and manifest was incorrect.
2016-06-13 21:19:29 -07:00
Johannes Zellner
4e9dc75a37
Replace DatabaseError with ClientsError where applicable
2016-06-13 14:43:56 +02:00
Johannes Zellner
92e6ee9539
The clientSecret is now only ever created in the clients.js
2016-06-03 15:11:08 +02:00
Johannes Zellner
226537de04
Move client TYPE_* to clients.js
2016-06-03 15:05:00 +02:00
Johannes Zellner
1360729e97
Don't use clientdb directly from auth.js and apptask.js
2016-06-03 14:52:59 +02:00
Girish Ramakrishnan
51c8f65e8d
wait for altDomain on install as well
...
restore calls install when there is no lastBackupId
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
9893dd6640
make waitfordns get the zone itself
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
8f7e4c2053
Make waitForDns wait for cname
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
d037b13401
wait for alt domain dns
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
0e825272ae
ensureCertificate now takes app object
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
500fb452e7
use altDomain when present to configure certs and nginx
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
6eea2fef9a
retry fetching icon
...
e2e randomly fails with EAI_AGAIN
2016-04-20 00:40:22 -07:00
Girish Ramakrishnan
73898505b0
remove jslint header
2016-04-19 16:59:12 -07:00
Girish Ramakrishnan
b9857cdb65
use async.retry
2016-04-18 22:06:49 -07:00
Girish Ramakrishnan
db6d8deec4
fix another typo
2016-04-15 18:25:46 -07:00
Girish Ramakrishnan
322e9faee7
rework backup code
...
move all the backup code into backups.js
2016-04-10 20:41:08 -07:00
Girish Ramakrishnan
3499a4cc6c
move requiresOAuthProxy to nginx
...
we have 3 levels
* routes, cron, apptask
* everything else where everyone calls everyone :-)
* the db layer
2016-03-17 11:38:29 -07:00
Johannes Zellner
c167bd8996
Set error in installationProgress also on uninstallation errors
2016-02-24 17:53:21 +01:00
Johannes Zellner
dd18f9741a
Dynamically detect oauth proxy needs in apptask
2016-02-19 16:18:47 +01:00
Johannes Zellner
f731c1ed0b
Dynamically detect if an oauth proxy should be used for an app
2016-02-19 15:44:15 +01:00
girish@cloudron.io
e6d23a9701
stop previous task explicitly
...
there is a race:
1. task is running
2. new task is created overwriting the installationState
3. new task kills the old task of step 1. this results in installationState getting overwritten by 'error' because of the sigkill
4. new task that is launched loses the installationState that was step in 2.
2016-02-09 12:09:20 -08:00
Girish Ramakrishnan
c5e2d9a9cc
download new app image as the first thing in update
...
this will reduce downtime.
2016-02-04 22:49:22 -08:00
girish@cloudron.io
fa1f5cc454
call the multi methods if multipleDatabases is set
2016-02-02 08:41:41 -08:00
Johannes Zellner
16a9cae80e
Allow to specify the restore id
2016-01-17 15:50:20 +01:00
Johannes Zellner
21ca8ac883
Use new getIP() api in apptask
2016-01-05 12:16:39 +01:00
Johannes Zellner
ec93becb17
Add missing asserts
2016-01-05 12:14:39 +01: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
39c626dc75
more moving of nginx code
2015-12-11 14:48:39 -08:00
Girish Ramakrishnan
a7480c3f29
implement installation of admin certificate via acme
2015-12-11 14:37:55 -08:00
Girish Ramakrishnan
fd985c2011
configure nginx as the last step
...
this allow us to wait for certificate (in the case of LE)
2015-12-10 15:26:36 -08:00
Girish Ramakrishnan
47981004c9
split port reserving to separate function
...
this allows us to move nginx configuration to the bottom of apptask
(required for tls cert download support)
2015-12-10 15:25:15 -08:00
Girish Ramakrishnan
d2c8457ab1
reset health when app is stopped
2015-11-30 15:41:56 -08:00
Girish Ramakrishnan
b6f1ad75b8
merge SubdomainError into subdomains.js like other error classes
2015-11-06 17:58:01 -08:00
Girish Ramakrishnan
d6bff57c7d
subdomains.del now takes array values
2015-10-30 13:30:19 -07:00
Girish Ramakrishnan
bf13b5b931
subdomains.add takes array values
2015-10-30 13:23:43 -07:00
Girish Ramakrishnan
cf8948ac69
console.error to debug
2015-10-28 16:08:12 -07:00
Johannes Zellner
5d4d0c0a86
Add missing fs.
2015-10-28 12:56:09 +01:00
Johannes Zellner
e81db9728a
Set the cert and key dynamically when rendering nginx appconfig
2015-10-28 12:42:04 +01:00
Girish Ramakrishnan
615789a9ad
fix unregisterSubdomain loop
2015-10-27 18:53:06 -07:00
Girish Ramakrishnan
84d96cebee
linter fixes
2015-10-23 16:06:55 -07:00
Girish Ramakrishnan
daba68265c
stop all containers of an app
2015-10-20 00:05:19 -07:00
Girish Ramakrishnan
8530e70af6
delete all containers of an app
2015-10-19 22:09:34 -07:00
Girish Ramakrishnan
15aa4ecc5d
Add docker.createSubcontainer
2015-10-19 21:33:53 -07:00
Girish Ramakrishnan
25d74ed649
createContainer takes optional command
2015-10-19 16:22:35 -07:00