Added websocket protocols to docker config
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
#Why erb?
|
||||||
default: &default
|
default: &default
|
||||||
connection_timeout: 3
|
connection_timeout: 3
|
||||||
pool:
|
pool:
|
||||||
@ -7,9 +8,17 @@ default: &default
|
|||||||
development:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
host: tcp://192.168.59.104:2376
|
host: tcp://192.168.59.104:2376
|
||||||
ws_host: ws://192.168.59.104:2376
|
ws_host: ws://192.168.59.104:2376 #url to connect rails server to docker host
|
||||||
#workspace_root: <%= File.join('/', 'shared', Rails.env) %>
|
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) %>
|
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:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
@ -22,7 +31,8 @@ production:
|
|||||||
interval: 15
|
interval: 15
|
||||||
timeout: 60
|
timeout: 60
|
||||||
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
|
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:
|
test:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
Reference in New Issue
Block a user