Commit Graph

8393 Commits

Author SHA1 Message Date
Girish Ramakrishnan 94c3ac96f0 reload mail credentials when restarting mail container 2016-09-01 15:54:55 -07:00
Girish Ramakrishnan 1874ea7f58 use username instead of id 2016-08-31 23:41:28 -07:00
Girish Ramakrishnan 61ef3f3efb disallow certain actions in demo mode
* Cannot change password
* Cannot delete user
* Cannot migrate domain or change plan

Fixes #20
2016-08-31 22:39:42 -07:00
Girish Ramakrishnan 35b25a4e28 add DEMO_USER_ID 2016-08-31 22:03:41 -07:00
Girish Ramakrishnan d3d7f2c320 Add config.isDemo() 2016-08-31 20:51:36 -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 cbd4903960 remove .js 2016-08-30 21:33:56 -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 af82af5652 test: mail config get/set
Part of #16
2016-08-30 21:23:03 -07:00
Girish Ramakrishnan d3a5a83f93 doc: get/set email config
Part of #16
2016-08-30 21:11:26 -07:00
Girish Ramakrishnan 5b52eeb573 add route to enable/disable mail
mail is disabled by default

Part of #16
2016-08-30 21:09:22 -07:00
Girish Ramakrishnan db8afaf3ff remove underused first run event 2016-08-30 21:09:05 -07:00
Girish Ramakrishnan 8e76d44a30 Remove dead code
From 69402d0079
2016-08-30 20:59:28 -07:00
Girish Ramakrishnan b214bd5d52 Give postgresql more memory
Fixes #14
2016-08-30 17:19:05 -07:00
Girish Ramakrishnan 22d86ff5b9 create signed urls that are valid for a day
sometimes the downloads take overly long and it's annoying that they
expire so soon.
2016-08-24 17:53:31 -07:00
Girish Ramakrishnan 86903183df Fix routing TCP upgrades via express middleware
Currently, if there was a POST request with 'tcp' upgrade, the code just hangs and waits
till timeout.

Instead, let express code will give us a default 'finalhandler' which responds
appropriately - https://github.com/expressjs/express/blob/master/lib/application.js#L161

https://github.com/pillarjs/finalhandler/blob/master/index.js#L57 for future reference
on how to call this callback should socket.destroy need to be called.
2016-08-22 13:21:46 -07:00
Girish Ramakrishnan e4c2483ae5 upgrade header value is already checked in the route handlers
also, req.end() crashes
2016-08-22 13:21:46 -07:00
Girish Ramakrishnan 36f7e573a8 change base image version 2016-08-21 21:03:15 -07:00
Girish Ramakrishnan e198f34219 add note about db upgrades 2016-08-21 15:50:14 -07:00
Girish Ramakrishnan 6a4bda1f7e bump test container 2016-08-21 13:25:27 -07:00
Girish Ramakrishnan 3bf0a392b9 bump mysql version 2016-08-21 13:01:31 -07:00
Girish Ramakrishnan 4165bf35d0 bump mail version 2016-08-20 12:08:02 -07:00
Girish Ramakrishnan fc1a288a2d bump graphite 2016-08-20 11:07:25 -07:00
Girish Ramakrishnan 7f37a9ce50 Bump redis 2016-08-20 11:03:49 -07:00
Girish Ramakrishnan d34f8bc082 bump mongodb 2016-08-20 11:00:08 -07:00
Girish Ramakrishnan 8150d1cb8f bump postgresql 2016-08-20 10:42:12 -07:00
Girish Ramakrishnan 5b53280cd4 make baseImage an array 2016-08-20 10:24:29 -07:00
Girish Ramakrishnan f3978897ae use a different exit code to signal external errors
http://tldp.org/LDP/abs/html/exitcodes.html
2016-08-19 21:54:14 -07:00
Girish Ramakrishnan 55ba9a351f mail container bugfix (typo in delay deny patch) 2016-08-13 14:19:52 -07:00
Girish Ramakrishnan b58b350827 Throw exception if dkim keys could not be generated 2016-08-13 00:23:55 -07:00
Girish Ramakrishnan c25cc560d8 bump memory for mail container 2016-08-12 19:57:49 -07:00
Girish Ramakrishnan d342652212 bump mail container version (spam support) 2016-08-12 17:17:48 -07:00
Johannes Zellner c30cfefcc5 Reduce LDAP account password length
(This is currently ignored)

256 might be a common db field restriction. At least in openproject
it is based on their table layout.
2016-08-12 21:14:32 +02:00
Johannes Zellner f3e842ed45 Retry to acquire a db connection when starting a transaction
This fixes db issues just like we do for regular queries.
Also we now use the .on('connection') to setup the session and db
this is how the docs recommend it
2016-08-05 15:18:32 +02:00
Johannes Zellner 1ec5d8c03b Fix error usage 2016-08-05 14:01:19 +02:00
Johannes Zellner 26a590b827 Name the DatabaseError so we get better logs 2016-08-05 12:30:28 +02:00
Johannes Zellner ed734ef2ae fix tests, purchase api is gone 2016-08-04 16:22:50 +02:00
Johannes Zellner 41ff92f747 Only unpurchase if the app has an appstoreId 2016-08-04 15:53:55 +02:00
Johannes Zellner 15f94a5134 Use the correct result object 2016-08-04 09:46:03 +02:00
Johannes Zellner 9c65fae4ec Also unpurchase on app uninstall 2016-08-04 09:38:00 +02:00
Johannes Zellner 65b4c83b75 Use the correct token when calling the appstore for purchase 2016-08-03 23:07:31 +02:00
Johannes Zellner a91f89c7dd Rework the purchase api to use the new rest api on the appstore server 2016-08-03 18:30:41 +02:00
Johannes Zellner dde597742c Do not expose purchase function 2016-08-03 17:57:53 +02: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 2e51251cac fix debug message 2016-08-02 18:09:45 -07:00
Girish Ramakrishnan b0286a6f7f updatechecker: ensure box state information is not lost
the box and app update checker run in parallel. be sure not to lose
the box state information.
2016-08-02 17:39:43 -07:00
Girish Ramakrishnan fc589a044d send mail to selfhosted cloudron admins about app died and oom 2016-08-02 14:42:42 -07:00