Permalink
Browse files

Ports are more secure. Updated readme. Runs unprivilged by default.

  • Loading branch information...
1 parent 5065489 commit 3ee8c985a606c5d2a017fd8aebdfec514c944bbf @fsargent fsargent committed Mar 14, 2013
Showing with 28 additions and 15 deletions.
  1. +22 −12 README.md
  2. +2 −2 lib/web/app.js
  3. +4 −1 lib/web/views/meta_index.jade
View
@@ -1,29 +1,32 @@
# Gutsy DevOps Dashboard
-Gutsy is an app for an out-of-the-box DevOps Dashboard built on top of
+Gutsy is an app for an out-of-the-box DevOps Dashboard built on top of
[DevOps JSON](/racker/devopsjson) data.
The goal is to reflect not only the most recent raw devops.json data,
-but also to realize related APIs such as version control, issue trackers, build systems and on-call rotations.
+but also to realize related APIs such as version control, issue trackers,
+build systems and on-call rotations.
## Communication
-```
+
irc.freenode.org#gutsy
-```
-##Installation
-###Node Setup:
+## Installation
+
+### Node Setup:
Make sure you have node installed. We require at least node 0.8.11.
-We recommend ['n'](https://github.com/visionmedia/n/) the node version manager (similar to ruby's rvm).
+We recommend ['n'](https://github.com/visionmedia/n/) the node version manager
+(similar to ruby's rvm).
+Forever helps keep the app running if anything goes boink.
npm install npm@1.1.12 -g
- npm install n -g
+ npm install n forever -g
sudo n 0.8.11
-###Installing Gutsy
+### Installing Gutsy
git clone https://github.com/racker/gutsy.git
git submodule update --init
@@ -33,11 +36,18 @@ We recommend ['n'](https://github.com/visionmedia/n/) the node version manager (
## Website
-Run the web app:
+Setup your ports:
+
- sudo npm start
+ iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
+ iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443
+
+
+If you want different ports, change them in ```lib/web/app.js```
+
+Run the web app:
-Then go to: [https://0.0.0.0](https://0.0.0.0).
+ forever start ./bin/gutsy
Add a project using the Add Project button. You're set!
View
@@ -62,7 +62,7 @@ exports.run = function(argv) {
redirect_app.all("*", function (req, res, next) {
return res.redirect("https://" + req.headers.host + req.url, 301);
});
- redirect_app.listen(80, host);
+ redirect_app.listen(8080, host);
web_app = express.createServer({key: privateKey, cert: certificate});
@@ -107,7 +107,7 @@ exports.run = function(argv) {
});
});
- web_app.listen(443, host);
+ web_app.listen(8443, host);
routes.hooks.install(hooks_server, installed_projects);
hooks_server.listen(port, host);
@@ -60,7 +60,10 @@ block content
-var bg_color = null;
-var ruok = project.get_data("ruok")
if ruok
- -if (ruok.state === "ok") {bg_color = "#ECFFEC"} else {bg_color = "#F8A7A7"};
+ -if (ruok.state === "ok") {bg_color = "#ECFFEC"}
+ -else if (ruok.msg === "Error: socket hang up") {bg_color = "#FCF8E3"}
+ -else {bg_color = "#F8A7A7"}
+ - console.log(ruok)
.well(style="background-color: #{bg_color}; height:170px;", id=formatted_project_name).span3.project
style(type="text/css")##{formatted_project_name}:hover ##{project.name}-edit-button{ display: block; }

0 comments on commit 3ee8c98

Please sign in to comment.