Girish Ramakrishnan
959f8ee31e
Ensure passwords are preserved with v2 manifest
2019-06-20 11:46:50 -07:00
Girish Ramakrishnan
c5f6e6b028
Prefix mysql url/database variables
2019-06-15 10:06:51 -07:00
Girish Ramakrishnan
d3f31a3ace
Ensure all env vars have the CLOUDRON_ prefix
...
this is currently injected based on the manifest version (i.e v2)
2019-06-03 13:45:35 -07:00
Girish Ramakrishnan
4c1e967dad
give containers a hostname
...
this only affects the hostname and not the network name/alias
2019-06-01 10:02:26 -07:00
Girish Ramakrishnan
e31d413551
Add nginx service
...
We had a case where nginx was not picking up renewed certs. Not sure
if it's a bug in our code or nginx.
2019-04-12 09:47:05 -07:00
Girish Ramakrishnan
5c645ea224
sftp: set default memory limit
2019-04-05 10:34:24 -07:00
Girish Ramakrishnan
a0d1016c01
containerize sftp
2019-04-04 22:43:02 -07:00
Girish Ramakrishnan
f22e4c261a
Add graphite to list of services
2019-03-19 20:26:21 -07:00
Johannes Zellner
cde852f0f9
Add proftpd as service
2019-03-19 15:24:09 -07:00
Girish Ramakrishnan
6a18d6918e
restart mail now restart the service
...
... and not just the container
Fixes #617
2019-02-28 10:44:26 -08:00
Girish Ramakrishnan
38a4c1aede
Fixup volume management
...
Fixes related to removing directory and directory perms
2019-01-18 15:18:42 -08:00
Girish Ramakrishnan
5ddfa989d0
setupLocalStorage should remove old volume
2019-01-17 14:50:43 -08:00
Girish Ramakrishnan
13c628b58b
backups (tgz): work with a layout
...
this will allow us to place the localstorage directory in an arbitrary
location
2019-01-16 12:52:04 -08:00
Girish Ramakrishnan
9d45e4e0ae
refactor: make removeVolume not clear
2019-01-15 09:46:24 -08:00
Girish Ramakrishnan
898f1dd151
Make volume logic work with absolute paths
2019-01-13 21:12:22 -08:00
Girish Ramakrishnan
810f5e7409
Fix line param parsing
...
lines is a positive integer or -1 to disable line limiting. The
default value is 10 if no argument is given.
Fixes #604
2019-01-08 13:23:29 -08:00
Girish Ramakrishnan
4eec2a6414
Add LDAP_MAILBOXES_BASE_DN
...
this got removed by mistake in the email refactor assuming this
was unused (but it is used by sogo)
(cherry picked from commit 6589ba0988 )
2018-12-16 21:06:52 -08:00
Girish Ramakrishnan
3688371ce8
Make tasks log to their own log file
2018-12-08 21:59:20 -08:00
Girish Ramakrishnan
dfa61f1b2d
rework how app mailboxes are allocated
...
Our current setup had a mailbox allocated for an app during app
install (into the mailboxes table). This has many issues:
* When set to a custom mailbox location, there was no way to access
this mailbox even via IMAP. Even when using app credentials, we
cannot use IMAP since the ldap logic was testing on the addon type
(most of our apps only use sendmail addon and thus cannot recvmail).
* The mailboxes table was being used to add hidden 'app' type entries.
This made it very hard for the user to understand why a mailbox conflicts.
For example, if you set an app to use custom mailbox 'blog', this is
hidden from all views.
The solution is to let an app send email as whatever mailbox name is
allocated to it (which we now track in the apps table. the default is in the
db already so that REST response contains it). When not using
Cloudron email, it will just send mail as that mailbox and the auth
checks the "app password" in the addons table. Any replies to that
mailbox will end up in the domain's mail server (not our problem).
When using cloudron email, the app can send mail like above. Any responses
will not end anywhere and bounce since there is no 'mailbox'. This is the
expected behavior. If user wants to access this mailbox name, he can
create a concrete mailbox and set himself as owner OR set this as
an alias.
For apps using the recvmail addon, the workflow is to actually create
a mailbox at some point. Currently, we have no UI for this 'flow'.
It's fine because we have only meemo using it.
Intuitive much!
2018-12-06 22:13:32 -08:00
Johannes Zellner
527ff1b1fb
Support docker and unbound service logs through journalctl
2018-12-05 16:19:10 +01:00
Girish Ramakrishnan
be0876603c
ADDON_STATUS_* -> SERVICE_STATUS_*
2018-12-02 19:40:27 -08:00
Girish Ramakrishnan
7c1ef143f9
Add unbound service
2018-12-02 19:38:34 -08:00
Girish Ramakrishnan
6d128595e7
all container related functionality is 'service'
2018-12-02 19:12:43 -08:00
Girish Ramakrishnan
2f55abfc60
Fixup logs routes as well
2018-12-02 19:07:12 -08:00
Girish Ramakrishnan
7ed422a3c1
Split out service related functions
2018-12-02 18:45:39 -08:00
Girish Ramakrishnan
9a701560f4
Fix email status
2018-12-01 21:50:28 -08:00
Girish Ramakrishnan
b409fd775d
Revert "Fix crash"
...
This reverts commit 12a5965740 .
Really fix crash
2018-11-30 19:10:44 -08:00
Girish Ramakrishnan
12a5965740
Fix crash
2018-11-30 17:10:28 -08:00
Johannes Zellner
148a0d0fc6
Add memory usage for addon status api
2018-11-28 12:33:24 +01:00
Johannes Zellner
114f48fb17
Remove leftover console.log()
2018-11-26 14:50:10 +01:00
Girish Ramakrishnan
802011bb7e
Fix args to shell.sudo
2018-11-25 14:57:51 -08:00
Girish Ramakrishnan
6cd8e769be
remove all uses of sudoSync
2018-11-25 14:43:29 -08:00
Johannes Zellner
161a8fe2bf
Make docker restartable
2018-11-24 22:12:28 +01:00
Girish Ramakrishnan
9b4fffde29
Use shell.exec instead of shell.execSync
2018-11-23 11:18:45 -08:00
Johannes Zellner
e2debe3c39
Add starting addon state when we wait for healthcheck
2018-11-22 21:54:31 +01:00
Johannes Zellner
f54ab11f18
Handle mail related addon logs
2018-11-22 12:38:50 +01:00
Johannes Zellner
b560e281d0
share container addon status code
2018-11-22 12:38:50 +01:00
Girish Ramakrishnan
3bb4ef5727
Some servers can be very slow starting databases
2018-11-21 09:49:08 -08:00
Johannes Zellner
900c008d20
Only allow addon restarts, no start+stop
2018-11-21 16:06:58 +01:00
Johannes Zellner
c1183a09a8
Add addon configure route
2018-11-21 15:47:41 +01:00
Johannes Zellner
329cc80933
Send memory settings on addon status
2018-11-20 16:53:27 +01:00
Johannes Zellner
a13f0706b4
Report addon state detail for further use
2018-11-20 13:11:11 +01:00
Johannes Zellner
ab456f179e
Check for healthcheck in addon status code
2018-11-20 12:26:33 +01:00
Johannes Zellner
f9d5bcd352
Make getAddonDetails() return AddonsError
2018-11-20 12:12:25 +01:00
Johannes Zellner
6a337884b5
Add start/stop addon code
2018-11-20 11:09:09 +01:00
Johannes Zellner
f953d115da
Fix missing require
2018-11-20 11:09:09 +01:00
Johannes Zellner
88e8fc840f
Fetch basic addon status from docker
2018-11-20 11:09:09 +01:00
Johannes Zellner
d1818e31b0
Add addon status hooks
2018-11-20 11:09:09 +01:00
Johannes Zellner
e08b210001
Add initial addons rest apis
2018-11-20 11:09:09 +01:00
Girish Ramakrishnan
fd4057df94
shell.exec -> shell.spawn
2018-11-17 19:26:19 -08:00