Girish Ramakrishnan
b66ba0a2c7
take oauthProxy parameter in install and configure routes
...
part of #6
2016-09-06 23:43:27 -07:00
Girish Ramakrishnan
408dd61408
Send and receive oauthProxy in REST routes
...
Part of #6
2016-09-06 23:32:42 -07:00
Girish Ramakrishnan
ac5cef3c2f
do not introspect the value of accessRestriction
...
if there are no users or groups, it simply means nobody can access it.
(maybe the admin is doing something on the cloudron and does not want
anyone to access it).
2016-09-06 16:37:14 -07:00
Girish Ramakrishnan
375082c1ae
make tests pass
2016-09-06 13:33:12 -07:00
Girish Ramakrishnan
0900d7b824
Fix crash
2016-09-06 12:54:53 -07:00
Johannes Zellner
1b54f5f797
Support both floating and non fixed ips
2016-09-06 15:43:43 +02:00
Johannes Zellner
9fcaebcf98
Return digitalocean floating ip for caas cloudrons in sysinfo
2016-09-06 15:43:43 +02:00
Girish Ramakrishnan
c63c6f793c
do not unregister naked domain of non-custom domains only
2016-09-05 18:40:22 -07:00
Girish Ramakrishnan
bc839d7f9b
Cannot optimize here since we always need a changeId
2016-09-05 18:31:40 -07:00
Girish Ramakrishnan
539b45d3b0
Bypass DNS check for non-custom domains
...
Part of #27
2016-09-05 17:39:14 -07:00
Girish Ramakrishnan
203cac2629
Check if DNS entry already exists before updating it
...
Fixes #27
2016-09-05 17:14:17 -07:00
Girish Ramakrishnan
3aa2ccaef7
remove unused require
2016-09-05 17:09:19 -07:00
Girish Ramakrishnan
90472e1370
remove subdomains.add API
2016-09-05 17:09:00 -07:00
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