Skip to content

Commit 71eb154

Browse files
committed
* Make sure we're running in nginx 1.1.4 or later.
1 parent 6c5b6b1 commit 71eb154

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dotcloud.coffee

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
@include = -> try
2-
@io.configure => @io.set "transports", ["websocket", "flashsocket", "xhr-polling", "jsonp-polling"]
2+
@io.configure => @io.set "transports", if @KEY then [
3+
"jsonp-polling"
4+
] else [
5+
"websocket", "flashsocket", "xhr-polling", "jsonp-polling"
6+
]
37

48
json = require('fs').readFileSync('/home/dotcloud/environment.json', 'utf8')
59
env = process.env

nginx/conf/nginx.conf

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ http {
88

99
location / {
1010
proxy_pass http://127.0.0.1:8000;
11+
proxy_http_version 1.1;
1112
}
1213

1314
location ~ /\. {
@@ -16,6 +17,7 @@ http {
1617

1718
location ~ /edit$ {
1819
proxy_pass http://127.0.0.1:8000;
20+
proxy_http_version 1.1;
1921
auth_basic "Editor Only";
2022
auth_basic_user_file .htpasswd;
2123
}

0 commit comments

Comments
 (0)