Commit Graph

58 Commits

Author SHA1 Message Date
Girish Ramakrishnan
9e2f43c3b1 initialize platform only when domain is available 2017-01-09 10:28:25 -08:00
Girish Ramakrishnan
56c4908365 restart mail container on configure event 2017-01-07 23:33:20 -08:00
Girish Ramakrishnan
d0ea1a4cf4 Send bounce alerts to cloudron owner
Fixes #166
2017-01-07 23:24:12 -08:00
Girish Ramakrishnan
aa75824cc6 Pass alerts_from and alerts_to to mail container
Part of #166
2017-01-07 22:31:40 -08:00
Girish Ramakrishnan
61d5005c4b Use mail_vars.ini to pass mail container config 2017-01-07 16:42:24 -08:00
Girish Ramakrishnan
af69ddc220 Email needs atleast 256m even on 1gb droplet 2016-12-29 18:33:59 -08:00
Girish Ramakrishnan
21b28d3dcc Dynamically scale addon memory
Simple math for now: we bump up memory in slabs of 4gb

Fixes #79
2016-10-13 13:13:09 -07:00
Johannes Zellner
9872ac424f Increase mail container memory
This is only a temporary fix for the next release, in case
we have not yet implemented a dynamic setting
2016-10-13 13:56:55 +02:00
Girish Ramakrishnan
a75cefa38f Email now allows relay from 172.18.0.1 with no auth 2016-09-27 10:28:20 -07:00
Girish Ramakrishnan
00ee2eea39 Remove code to push aliases
The mail-addon will query via LDAP
2016-09-23 15:14:07 -07:00
Girish Ramakrishnan
563b2a3042 Do not add dmarc record unless mail is enabled
the dmarc records depends on the DKIM signing as well. if the
cloudron is not using the cloudron mail service, that means that
the mails are not dkim signed and thus mails get rejected.
2016-09-22 09:52:25 -07:00
Girish Ramakrishnan
ecc9d1bc02 rename subdomains.update to subdomains.upsert 2016-09-05 16:58:13 -07:00
Girish Ramakrishnan
f083d81b35 Fix typo 2016-09-04 11:38:36 -07:00
Girish Ramakrishnan
d07840c8ef Load mail conf in mailer.js
addon vars is not really used other than for email. mail config
is required even if platform code is not initialized since it
is called from mailer.unexpectedExit

fixes #29
2016-09-03 12:27:12 -07:00
Girish Ramakrishnan
23514078f3 add explicit check for test code 2016-09-03 11:51:32 -07:00
Girish Ramakrishnan
a5bb438af4 rename env var 2016-09-03 11:46:57 -07:00
Girish Ramakrishnan
ef6344afae ignore any error when stopping addon containers
fixes #29
2016-09-03 11:24:16 -07:00
Girish Ramakrishnan
94c3ac96f0 reload mail credentials when restarting mail container 2016-09-01 15:54:55 -07:00
Girish Ramakrishnan
42b65baa39 Listen to mail config change event correctly 2016-08-31 09:19:41 -07:00
Girish Ramakrishnan
0eab262084 remove any existing container 2016-08-31 09:19:41 -07:00
Girish Ramakrishnan
546d8ae4e2 re-setup mail container when config key changes
part of #16
2016-08-30 21:54:06 -07:00
Girish Ramakrishnan
f3fd2d7950 add mx record during mail container setup
part of #16
2016-08-30 21:36:40 -07:00
Girish Ramakrishnan
267141fa9a expose ports in mail container based on mail config setting
part of #16
2016-08-30 21:33:47 -07:00
Girish Ramakrishnan
b214bd5d52 Give postgresql more memory
Fixes #14
2016-08-30 17:19:05 -07:00
Girish Ramakrishnan
c25cc560d8 bump memory for mail container 2016-08-12 19:57:49 -07:00
Girish Ramakrishnan
9fd40e506d Add TODO note for relaunching mail container when cert path changes 2016-08-02 18:37:43 -07:00
Girish Ramakrishnan
a3c270c4a1 do not reconfigure apps when infra version has not changed 2016-07-25 18:57:54 -07:00
Girish Ramakrishnan
129843c0ba debug name of addons that changed 2016-07-25 10:18:35 -07:00
Girish Ramakrishnan
684aec41cc create all addons on infra upgrade 2016-07-25 10:13:01 -07:00
Girish Ramakrishnan
12915ee169 incremental infra creation 2016-07-25 00:39:57 -07:00
Girish Ramakrishnan
e5a34581b1 compare objects instead of just the version
this is in preparation of incremental infra updates. in that case,
an equal infra version is not enough (the images could have changed).
infra version will only signify if containers need to be recreated
wholesum.
2016-07-24 23:19:13 -07:00
Girish Ramakrishnan
5c53aec837 setup mail aliases whenever mail container is created 2016-07-24 23:04:27 -07:00
Girish Ramakrishnan
b45fc46ff3 emit platform ready timer only if platform succeeded 2016-07-24 22:59:47 -07:00
Girish Ramakrishnan
501e1342b6 emit ready event if nothing to do 2016-06-22 11:53:48 -05:00
Girish Ramakrishnan
2a761a52d3 more debugs 2016-06-22 11:48:53 -05:00
Girish Ramakrishnan
f901728cc9 Fix typo 2016-06-21 16:34:31 -05:00
Girish Ramakrishnan
5a61c5ba51 platform: ready event 2016-06-21 10:46:02 -05:00
Girish Ramakrishnan
c37d914518 platform: rename from legacy to corrupt 2016-06-20 11:59:43 -05:00
Girish Ramakrishnan
2017d668a9 use 128 byte passwords 2016-06-17 09:49:25 -05:00
Girish Ramakrishnan
d51d2e5131 start addons and apps in the cloudron network
also remove getLinkSync, since we don't use linking anymore
2016-06-17 09:18:10 -05:00
Girish Ramakrishnan
d5ffa53e70 create an isolated docker network named cloudron
we will move from linked containers to an isolated network. This
has the main advantage that linked containers can be upgraded.
For example, I can update the mysql container independently without
breaking the apps that require it. Apps will only see some minor
downtime and will need to reconnect.
2016-06-16 06:59:47 -07:00
Girish Ramakrishnan
f15f3c9052 node-ify setup_infra.sh 2016-06-15 05:26:40 -07:00
Johannes Zellner
385bf3561b Remove unused function in platform.js 2016-06-08 15:06:03 +02:00
Johannes Zellner
4304f20fe0 Fix some log output 2016-06-08 15:05:43 +02:00
Johannes Zellner
1b9dbd06c8 Fix typo 2016-06-08 14:55:14 +02:00
Girish Ramakrishnan
9e36b7abf4 load addon vars for existing infra case 2016-05-30 01:06:41 -07:00
Girish Ramakrishnan
e9b3e22e86 check version of existing infra 2016-05-29 21:58:04 -07:00
Girish Ramakrishnan
2909aad72a use async.series 2016-05-28 01:59:48 -07:00
Girish Ramakrishnan
cafbb31e78 push aliases to mail container on startup 2016-05-28 01:53:25 -07:00
Girish Ramakrishnan
4afdf50736 finally finally finally the tests are working 2016-05-24 20:04:37 -07:00