diff --git a/README.md b/README.md index a3efc6db..be73d6b1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Cloud Commander [![Build Status](https://secure.travis-ci.org/coderaiser/cloudcmd.png?branch=master)](http://travis-ci.org/coderaiser/cloudcmd) =============== -**Cloud Commander** - two-panels file manager, totally writed on js. +**Cloud Commander** - user friendly cloud file manager. DEMO: [cloudfoundry] (http://cloudcmd.cloudfoundry.com "cloudfoundry"), [appfog] (http://cloudcmd.aws.af.cm "appfog"). @@ -80,12 +80,25 @@ All main configuration could be done thrue config.json. "html" : true, "img" : false }, + "oauth_client_id" : "891c251b925e4e967fa9", /* github app id */ + "oauth_client_secret" : "afe9bed1e810c5dc44c4c2a953fc6efb1e5b0545", /* github app secret */ + "show_keys_panel" : true, /* show classic panel with buttons of keys */ "server" : true, /* server mode or testing mode */ "logs" : false, /* logs or console ouput */ + "socket" : true /* enable web sockets */ "port" : 80, /* Cloud Commander port */ - "ip" : "127.0.0.1" /* Cloud Commander IP */ + "ip" : "127.0.0.1", /* Cloud Commander IP */ + "rest" : true /* enable rest interface */ } ``` +Authorization +--------------- +Thru openID Cloud Commander could Authorize clients. +All things that should be done is must be added id and secret of application +from github settings page and added to config.json or env varibles with names: +"oauth_client_id" and "oauth_client_secret" that is more secure way. + + Starting --------------- To start **Cloud Commander** only one command neaded: diff --git a/config.json b/config.json index 73d27d8e..4d024bf8 100644 --- a/config.json +++ b/config.json @@ -9,7 +9,7 @@ }, "oauth_client_id" : "891c251b925e4e967fa9", "oauth_client_secret" : "afe9bed1e810c5dc44c4c2a953fc6efb1e5b0545", - "show_keys_panel" : true, + "show_keys_panel" : true, "server" : true, "logs" : false, "socket" : true, diff --git a/test/test.sh b/test/test.sh index 7659e584..72d745b1 100755 --- a/test/test.sh +++ b/test/test.sh @@ -1,4 +1,5 @@ #!/bin/sh +npm i recess jshint echo "jshint server.js client.js cloudcmd.js" node_modules/jshint/bin/hint --config test/.jshintrc server.js client.js cloudcmd.js echo "jshint lib/cloudfunc.js lib/client/keyBinding.js" @@ -8,7 +9,6 @@ node_modules/jshint/bin/hint --config test/.jshintrc lib/client/dom.js lib/clien echo "jshint ./package.json ./config.json" node_modules/jshint/bin/hint --config test/.jshintrc ./package.json ./config.json #linting css files -npm i recess echo "recess css/*.css" ./node_modules/recess/bin/recess css/*.css node test/test.js