Commit Graph

507 Commits

Author SHA1 Message Date
Girish Ramakrishnan 3ea2f55b22 Remove middleware loading code 2014-05-16 20:29:08 -07:00
Girish Ramakrishnan a48505b63d Comment out express.limit for now 2014-05-16 20:22:12 -07:00
Girish Ramakrishnan 1684dad50a express4: json and urlencoded middleware is part of body-parser 2014-05-16 20:21:43 -07:00
Girish Ramakrishnan adb016aeb3 express4: cookieParser is now in cookie-parser 2014-05-16 19:49:59 -07:00
Girish Ramakrishnan d272b047e7 express4: favion is in serve-favicon 2014-05-16 19:47:26 -07:00
Girish Ramakrishnan 03900de8f2 express4: session is now in express-session 2014-05-16 19:45:23 -07:00
Girish Ramakrishnan 2cbd92de6a express4: timeout now resides in connect-timeout 2014-05-16 19:43:59 -07:00
Girish Ramakrishnan 843867a640 express4: logger is gone. use morgan instead 2014-05-16 19:32:20 -07:00
Girish Ramakrishnan 55412be52f express4: app.router has removed
From the docs:
"app.router has been removed and middleware and routes are executed in the
order they are added. Your code should move any calls to app.use that came
after app.use(app.router) after any routes (HTTP verbs)."
2014-05-16 19:27:29 -07:00
Girish Ramakrishnan 511210511f express4: app.configure is no longer available 2014-05-16 19:23:10 -07:00
Girish Ramakrishnan 0e50370378 Update to express 4.2 2014-05-16 19:18:07 -07:00
Johannes Zellner b224e3f8b6 Set nginx user in config
The server currently runs as root, this needs to change.
2014-05-11 11:37:43 -07:00
Johannes Zellner 38c02b8e93 Update shrinkwrap file and restrict module updates 2014-05-08 18:38:39 -07:00
Girish Ramakrishnan 905323a25d Add app configuration page 2014-05-08 18:04:10 -07:00
Girish Ramakrishnan ecad05f048 Remove 'x' bits from files 2014-05-08 16:53:03 -07:00
Girish Ramakrishnan 8e670107b7 apps -> applist 2014-05-08 16:52:29 -07:00
Girish Ramakrishnan 28790999fa Remove 'x' bit from more files 2014-05-08 16:48:57 -07:00
Girish Ramakrishnan 59611d488d Remove 'x' bit from non-executables 2014-05-08 16:47:34 -07:00
Girish Ramakrishnan 1bee1d8ef9 Allow setting the hostname of the app 2014-05-08 14:45:02 -07:00
Girish Ramakrishnan 03174203ec Parse manifest and install docker app 2014-05-08 00:00:28 -07:00
Girish Ramakrishnan 14c47e963d Fix various error because of eaf2ec5a 2014-05-06 15:40:36 -07:00
Girish Ramakrishnan 225035f721 server -> box 2014-05-06 15:15:04 -07:00
Girish Ramakrishnan eaf2ec5a55 Refactor apps code into apps.js 2014-05-06 08:22:43 -07:00
Girish Ramakrishnan 4f69a8b664 app.js -> apps.js 2014-05-05 17:35:12 -07:00
Girish Ramakrishnan b679e9c922 Implement appdb 2014-04-30 23:22:41 -07:00
Girish Ramakrishnan b1da9f68dc pyramid of doom -> async 2014-04-30 22:42:31 -07:00
Girish Ramakrishnan 00655871aa Add app server url to config 2014-04-30 22:03:20 -07:00
Girish Ramakrishnan 098ca9c7fe We require express 3 2014-04-30 20:19:31 -07:00
Girish Ramakrishnan 4fa6aab537 Add route to install an app 2014-04-29 16:58:22 -07:00
Girish Ramakrishnan 1605ae3262 Display app icons 2014-04-29 16:38:59 -07:00
Girish Ramakrishnan 49ac758787 Add config service that provides the appstore url 2014-04-29 16:26:51 -07:00
Girish Ramakrishnan 04a3f88073 Add place holder for App Store tab 2014-04-26 08:36:06 -07:00
Girish Ramakrishnan 7c5725d751 Redirect all http traffic to https 2014-04-25 14:11:03 -07:00
Girish Ramakrishnan ff151e0b00 Specify the port where it the server is started 2014-04-25 14:08:42 -07:00
Johannes Zellner c7a00ea283 Use OAuth login in the webadmin
Currently the webadmin has a fixed built-in
client id, which is added on server startup.
2014-04-16 21:17:16 -07:00
Johannes Zellner 5edae28235 Use postMessage instead of direct object access for OAuth result 2014-04-15 10:20:47 -07:00
Johannes Zellner a7db6023f0 Serve up the OAuth support library from the express app 2014-04-15 08:31:02 -07:00
Johannes Zellner adae88e5b5 Use run.sh only for starting the router
I guess for a real system startup we should rather
manager our processes via systemd only.
2014-04-15 08:17:11 -07:00
Johannes Zellner 616fbca2bd Add signin with Yellowtent button feature 2014-04-14 09:36:34 -07:00
Johannes Zellner 21ed9d6102 Style the OAuth flow sites according to the webadmin style 2014-04-13 21:33:14 -07:00
Johannes Zellner f74f05b9af Make OAuth2 example work
The test page is inside the webadmin for now.
https://localhost/oauth2/
An account needs to be created first.
2014-04-13 20:46:58 -07:00
Johannes Zellner fd4f6fc034 Specify auth strategy for each user related route explicitly 2014-04-11 17:40:09 -07:00
Johannes Zellner 0431a74f6b Add auth middleware explicitly to all routes
Currently most routes still support both bearer and basic.
The public routes (version, firsttime, ..) are now handled
by the app.router
2014-04-11 08:43:16 -07:00
Johannes Zellner beee12925b Replace old handcrafted auth route with passport strategies 2014-04-10 19:00:46 -07:00
Johannes Zellner 3d630dfdfa Use Date.now() instead of (new Date()).getTime() 2014-04-09 18:13:44 -07:00
Johannes Zellner ee9b127762 Remove server test mode
This was used by the file route test and was disabling
the authentication middleware. This is unneccesary, as
the test already passed auth info.
2014-04-09 17:59:05 -07:00
Johannes Zellner 361c42a7a9 Start using passport and some auth route strategies
The auth strategies are still unused so far.
2014-04-09 17:48:32 -07:00
Girish Ramakrishnan 243a022b5d Move server-test into src 2014-04-09 09:15:02 -07:00
Johannes Zellner 35d5c1e53d Fixup linter issues after those merges 2014-04-09 07:48:13 -07:00
Johannes Zellner 8d8cbc16b5 run nginx in the background when using run.sh 2014-04-08 21:57:18 -07:00