Skip to content

Commit

Permalink
* Make sure we're running in nginx 1.1.4 or later.
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyt committed May 29, 2012
1 parent 6c5b6b1 commit 71eb154
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dotcloud.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@include = -> try
@io.configure => @io.set "transports", ["websocket", "flashsocket", "xhr-polling", "jsonp-polling"]
@io.configure => @io.set "transports", if @KEY then [
"jsonp-polling"
] else [
"websocket", "flashsocket", "xhr-polling", "jsonp-polling"
]

json = require('fs').readFileSync('/home/dotcloud/environment.json', 'utf8')
env = process.env
Expand Down
2 changes: 2 additions & 0 deletions nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ http {

location / {
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
}

location ~ /\. {
Expand All @@ -16,6 +17,7 @@ http {

location ~ /edit$ {
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
auth_basic "Editor Only";
auth_basic_user_file .htpasswd;
}
Expand Down

0 comments on commit 71eb154

Please sign in to comment.