Added websocket protocols to docker config

This commit is contained in:
Tom Staubitz
2015-12-12 00:46:52 +08:00
parent c889488e55
commit 3bd31937cc

View File

@ -1,3 +1,4 @@
#Why erb?
default: &default
connection_timeout: 3
pool:
@ -7,9 +8,17 @@ default: &default
development:
<<: *default
host: tcp://192.168.59.104:2376
ws_host: ws://192.168.59.104:2376
#workspace_root: <%= File.join('/', 'shared', Rails.env) %>
ws_host: ws://192.168.59.104:2376 #url to connect rails server to docker host
ws_client_protocol: ws:// #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production)
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
pool:
active: true
refill:
async: false
batch_size: 8
interval: 15
timeout: 60
#workspace_root: <%= File.join('/', 'shared', Rails.env) %>
production:
<<: *default
@ -22,7 +31,8 @@ production:
interval: 15
timeout: 60
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
ws_host: ws://localhost:4243
ws_host: ws://localhost:4243 #url to connect rails server to docker host
ws_client_protocol: wss:// #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production)
test:
<<: *default