Commit Graph

1960 Commits

Author SHA1 Message Date
Girish Ramakrishnan
ecc9d1bc02 rename subdomains.update to subdomains.upsert 2016-09-05 16:58:13 -07:00
Girish Ramakrishnan
4fc6eb1876 fix route53.get() 2016-09-05 15:17:42 -07:00
Girish Ramakrishnan
e82152ac86 Fix failing tests
ec63c1c96e broke tests
2016-09-05 14:04:40 -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
6b4d906336 remove jslint comment 2016-09-04 23:56:50 -07:00
Girish Ramakrishnan
f96fda325d Return SubdomainError.BAD_FIELD in route53 backend
Part of #27
2016-09-04 19:46:46 -07:00
Girish Ramakrishnan
2caf57d2c7 Add SubdomainError.BAD_FIELD
The CaaS backend return 400 for conflicts. We can use this to abort
early if there is a conflict in DNS entries. For example, if an app
subdomain already exists in DNS.

Part of #27
2016-09-04 19:35:19 -07:00
Girish Ramakrishnan
3bdae8f4ac typo 2016-09-04 18:00:28 -07:00
Girish Ramakrishnan
7b4c9dffab fix memoryLimit handling
0 means not set. and it will follow value in manifest

part of #18
2016-09-04 11:38:54 -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
27a36492db mailer.unexpectedExit has no db access
part of #28
2016-09-03 11:35:59 -07:00
Girish Ramakrishnan
ef6344afae ignore any error when stopping addon containers
fixes #29
2016-09-03 11:24:16 -07:00
Girish Ramakrishnan
59b53d347f display demo user credentials in demo cloudrons 2016-09-01 16:21:12 -07:00
Girish Ramakrishnan
70b63af3c9 pass isDemo parameter to angular ui 2016-09-01 15:56:38 -07:00
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