-
Notifications
You must be signed in to change notification settings - Fork 3
/
rainbows.conf
34 lines (28 loc) · 1.46 KB
/
rainbows.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# encoding: UTF-8
# DEBUG_FAYE=true DEBUG=true bundle exec rainbows faye.ru -c /Users/mvj3/github/eoecn/faye-online/rainbows.conf -E production -p 9292
Rainbows! do
####################
### concurrency model to use
#
# WebSocket connection to 'ws://10.0.0.65:9292/faye' failed: No response code found: HTTP/1.1 -1 http://10.0.0.65:8003/courses/5/lessons/1
# WebSocket connection to 'ws://10.0.0.65:9292/faye' failed: WebSocket is closed before the connection is established.
# disconnect directly
# use :ThreadSpawn
#
# 错误: XMLHttpRequest cannot load http://10.0.0.65:9292/faye. Origin http://10.0.0.65:8003 is not allowed by Access-Control-Allow-Origin.
# use :FiberSpawn
#
# the client connect to server looply by Faye.Transport.CORS in faye.client.js
# {"channel"=>"/meta/connect", "clientId"=>"ekf8100ih4z04jiy2oo7l46qcud6wai", "connectionType"=>"cross-origin-long-polling", "id"=>"bi", "auth"=>{"room_channel"=>"/classes/7", "time_channel"=>"/courses/5/lessons/1", "current_user"=>{"uid"=>557558, "uname"=>"yiyou99storm", "uhash"=>""}}}
use :EventMachine
####################
worker_connections 500
keepalive_timeout 5 # zero disables keepalives entirely
client_max_body_size 5*1024*1024 # 5 megabytes
keepalive_requests 666 # default:100
client_header_buffer_size 2 * 1024 # 2 kilobytes
end
# the rest of the Unicorn configuration...
worker_processes 2 # CPU cores
# stderr_path "/path/to/error.log"
# stdout_path "/path/to/output.log"