Commit Graph

437 Commits

Author SHA1 Message Date
Johannes Zellner
8d49f5a229 Also put manually triggered app backups under a datetime prefix 2017-07-17 14:33:00 +02:00
Girish Ramakrishnan
471539d64b CNAME output from dig has trailing dot 2017-05-30 21:14:28 -07:00
Girish Ramakrishnan
14ca0c1623 Support naked domains as external location
Let the user add an A record for naked domains

Fixes #272
2017-04-26 15:56:39 -07:00
Girish Ramakrishnan
2083efdef8 Fix PERM issue when restoring an app with redis
This is the root cause of 926224bd5d.

0488aada9f caused a regression where
we setup addons in the restore code path. This meant that redis was
instantiated and running, changing the perms of the dir. Then when
the backup extract happens it fails as it has wrong permissions.
2017-04-20 18:12:29 -07:00
Girish Ramakrishnan
85fb63298e Overwrite existing DNS record on restore 2017-04-12 13:17:50 -07:00
Girish Ramakrishnan
e32b313cf2 refactor restore/clone/install into single function 2017-04-11 15:16:42 -07:00
Girish Ramakrishnan
a01dea3932 Allow installing from a backup 2017-04-11 13:06:39 -07:00
Girish Ramakrishnan
0e226d0314 Download icon (for repair case) 2017-03-15 20:35:44 -07:00
Girish Ramakrishnan
32e2377828 sysinfo: getIp -> getPublicIp 2017-02-23 22:03:48 -08:00
Johannes Zellner
b3a5dafee0 Ensure we download docker images and have an app data volume on configure
Part of #227
2017-02-17 15:00:58 +01:00
Girish Ramakrishnan
7fee3d0da0 Do not rely on dnsRecordId 2017-02-02 10:40:10 -08:00
Girish Ramakrishnan
472020f90c APPICONS_DIR -> APP_ICONS_DIR 2017-01-24 10:13:25 -08:00
Johannes Zellner
979956315c Only ever remove the app icon on uninstall 2017-01-19 12:39:31 +01:00
Johannes Zellner
62ba031702 Skip icon download without an appStoreId 2017-01-19 12:38:41 +01:00
Girish Ramakrishnan
3b035405b0 debug.formatArgs API has changed 2017-01-09 16:41:04 -08:00
Girish Ramakrishnan
20a75b7819 tag -> prefix 2017-01-05 23:20:02 -08:00
Girish Ramakrishnan
e83ee48ed5 Pass collation tag to backup functions
Fixes #159
2017-01-05 00:10:16 -08:00
Girish Ramakrishnan
5af201d4ee remove unused require 2017-01-04 19:37:39 -08:00
Girish Ramakrishnan
d475d9bcbf Make waitForDns provider specific
This will allow us to create a proper 'noop' backend that does
not wait for dns to be in sync. This is required for local/intranet
setups.
2016-12-14 14:43:20 -08:00
Johannes
ebd9249f87 Check dns record change and dns lookup for app install/configure
Fixes #121
2016-11-30 18:51:54 +01:00
Girish Ramakrishnan
94037e5266 remove oauth proxy backend logic 2016-11-19 17:13:08 +05:30
Girish Ramakrishnan
c1bb264065 Set a timeout for superagent
The default is 'no timeout' and it will wait for the response forever.

https://github.com/visionmedia/superagent/issues/17#issuecomment-207742985
2016-09-12 13:06:18 -07:00
Girish Ramakrishnan
5014ca7742 Simply check app.oauthProxy
Part of #6
2016-09-07 00:53:13 -07:00
Girish Ramakrishnan
452c976aa6 add more debugs 2016-09-07 00:53:09 -07:00
Girish Ramakrishnan
c63c6f793c do not unregister naked domain of non-custom domains only 2016-09-05 18:40:22 -07:00
Girish Ramakrishnan
bc839d7f9b Cannot optimize here since we always need a changeId 2016-09-05 18:31:40 -07:00
Girish Ramakrishnan
539b45d3b0 Bypass DNS check for non-custom domains
Part of #27
2016-09-05 17:39:14 -07:00
Girish Ramakrishnan
203cac2629 Check if DNS entry already exists before updating it
Fixes #27
2016-09-05 17:14:17 -07:00
Girish Ramakrishnan
ecc9d1bc02 rename subdomains.update to subdomains.upsert 2016-09-05 16:58:13 -07:00
Girish Ramakrishnan
ec63c1c96e use subdomains.update to short-circuit dns propagation check
if the entry is already uptodate, then we can bypass the wait
2016-09-05 10:00:15 -07:00
Girish Ramakrishnan
3595f624de Fix progress text 2016-07-27 20:38:49 -07:00
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