Girish Ramakrishnan
cfdb939bff
redis: various fixes
2018-09-19 14:29:27 -07:00
Girish Ramakrishnan
9732b899b0
redis: backup returns 200 now
2018-09-18 14:11:42 -07:00
Girish Ramakrishnan
23b9854c57
Use REST API instead of volumes for redis
2018-09-18 13:09:24 -07:00
Girish Ramakrishnan
0b3f65c70e
postgres: restore need not call setup anymore
2018-09-18 12:29:40 -07:00
Johannes Zellner
93cdba8137
Use post instead of delete for postgres clear
2018-09-18 20:23:19 +02:00
Johannes Zellner
2686a1b9e3
Fixup copy and paste errors and linter warnings
2018-09-18 20:20:27 +02:00
Johannes Zellner
f7f26fdf78
Fix logging in getAddonDetails()
2018-09-18 20:18:39 +02:00
Johannes Zellner
d980d44833
Talk to the mysql addon via rest apis
2018-09-18 20:18:39 +02:00
Girish Ramakrishnan
af4b2b075e
redis: fix clear return code
2018-09-17 20:44:13 -07:00
Girish Ramakrishnan
3fcf6aa339
Add a timeout to wait for redis to start
2018-09-17 20:40:07 -07:00
Girish Ramakrishnan
1b205ac107
postgresql: fix clear route to have username and remove extra }
2018-09-17 19:53:12 -07:00
Girish Ramakrishnan
e2bf52b69d
postgresql: Add missing db prefix in routes
2018-09-17 18:11:38 -07:00
Johannes Zellner
705d0ba7f9
Use restified postgresql addon
2018-09-16 22:56:26 +02:00
Girish Ramakrishnan
306c80dd93
Fix addons.js with the new env var names
2018-09-15 20:38:18 -07:00
Girish Ramakrishnan
64a7b80395
Fix issue deleting app dir during restore
...
During restore, only the superfluous addons are teardown. Rest of
the addons are kept as-is. This is done to preserve the addon
configuration across restores (thus preserving db passwords).
We then rely on the restoreApp logic to call restore in each addon.
Each restore currently setup, clear and them imports the backup.
With the volume changes, we have moved volume create/delete to the
localstorage addon. Currently, the localstorage addon has no concept of restore
because the backup download extracts it directly into the volume.
Because of the above, during the restore code path, we don't teardown
the localstorage addon and thus files are left behind in appid/data/. This
prevents deleteAppDir() from removing the appid/ directory.
The fix is to add a new 'clear' command to addons. Before restore, we
clear the addons.
2018-09-15 17:35:47 -07:00
Johannes Zellner
56cd97147a
Unify the code to get addon container ip and token
2018-09-14 13:26:56 +02:00
Johannes Zellner
614b3ed5d1
Remove unused variable
2018-09-14 13:19:47 +02:00
Johannes Zellner
9f622c5e65
Do not store the cloudron redis service token in the addon env blob
2018-09-14 13:19:33 +02:00
Girish Ramakrishnan
a46e208c63
Use docker volumes instead of bind mount for app data
2018-09-13 15:35:41 -07:00
Johannes Zellner
a0fd60408b
Use https with selfsigned certs for addon service calls
2018-09-13 21:37:55 +02:00
Johannes Zellner
ffbbba938a
Replace superagent with request for talking to addons
2018-09-13 12:54:33 +02:00
Johannes Zellner
812d3576a9
Use mongodb rest api for backup and restore
2018-09-12 12:56:24 +02:00
Johannes Zellner
6012eb7898
docker inspect and the rest api have a different output format
2018-09-12 12:56:24 +02:00
Johannes Zellner
a591b5910e
Restify mongodb addon
2018-09-12 12:56:24 +02:00
Johannes Zellner
b4224a7f8d
Call the rest route on redis backup
...
The addons are an array of key/value
2018-09-12 12:56:24 +02:00
Johannes Zellner
ab8a010b94
Redis does not use the vars.sh file anymore
2018-09-12 12:56:24 +02:00
Johannes Zellner
4c164c17cf
Support internal only addon configs with redis persistent token
2018-09-12 12:56:24 +02:00
Johannes Zellner
650f181a07
Provision redis addon with new set of required env vars
2018-09-12 12:56:24 +02:00
Johannes Zellner
7f5fe12712
Use DOCKER_HOST to make the cli work out of the box
2018-08-13 21:59:02 +02:00
Johannes Zellner
14f0f954b7
Use docker proxy over DOCKER_URL env var when docker addon is used
2018-08-13 20:47:15 +02:00
Johannes Zellner
6933184c2e
Revert "Expose the host /app/data folder when localstorage and docker addons are used"
...
We will use the docker proxy for that
This reverts commit b3aa59de19 .
2018-08-13 20:39:23 +02:00
Johannes Zellner
b3aa59de19
Expose the host /app/data folder when localstorage and docker addons are used
2018-08-13 19:40:41 +02:00
Girish Ramakrishnan
9a7214ea07
Update manifestformat for docker addon
2018-08-10 12:31:46 -07:00
Johannes Zellner
4499f08357
Revert "Remove _docker addon"
...
This reverts commit d6f49eb54f .
2018-08-09 11:54:46 +02:00
Girish Ramakrishnan
80e9214f5b
Reduce password length for sendmail/recvmail
...
Fixes #565
2018-06-22 16:37:34 -07:00
Girish Ramakrishnan
5ca64dd642
Normalize host path to prevent access to arbitrary paths
2018-06-22 08:29:08 -07:00
Girish Ramakrishnan
24d9d3063b
Allow specifying bindMounts array to localstorage addon
2018-06-21 22:04:06 -07:00
Girish Ramakrishnan
6534297a5d
Remove hat module
...
It's not been updated for 6 years!
2018-06-11 12:38:29 -07:00
Johannes Zellner
57e195883c
Use plain syslog tags to be compatible with the format
2018-06-06 14:09:50 +02:00
Johannes Zellner
f2178d9b81
Setup addons to log to cloudron-syslog
2018-06-06 14:09:50 +02:00
Girish Ramakrishnan
321f11c644
mysql: _ prefix is hardcoded in mysql addon already
...
Fixes #560
2018-06-04 12:31:40 -07:00
Girish Ramakrishnan
6fd314fe82
Do not change password on app update
...
Fixes #554
2018-05-17 19:48:57 -07:00
Girish Ramakrishnan
d0988e2d61
Generate password for mongodb on platform side
...
Part of #554
2018-05-17 10:00:00 -07:00
Girish Ramakrishnan
4bedbd7167
Generate password for postgresql on platform side
...
Part of #554
2018-05-17 10:00:00 -07:00
Girish Ramakrishnan
7ca7901a73
Generate password for mysql on platform side
...
Part of #554
2018-05-17 09:59:57 -07:00
Girish Ramakrishnan
3b7bcc1f61
refactor scopes into accesscontrol.js
...
this will be our authorization layer for oauth and non-oauth tokens.
2018-04-29 17:50:07 -07:00
Girish Ramakrishnan
6e3b060615
Use SCOPE_PROFILE constant
2018-04-29 17:12:30 -07:00
Girish Ramakrishnan
5af657ee22
rename mail crud functions
2018-04-03 15:06:14 -07:00
Girish Ramakrishnan
22c54ced05
email: add MAIL_DOMAINS
2018-03-07 20:39:58 -08:00
Johannes Zellner
b6384d5025
Remove intrinsicFqdn
2018-02-08 15:07:49 +01:00