Skip to content
Snippets Groups Projects
Commit 5740c728 authored by MrZYX's avatar MrZYX Committed by Daniel Grippi
Browse files

made websocket server host configurable

parent cc4e9f8d
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
development:
debug: false
socket_debug : false
socket_host: 0.0.0.0
socket_port: 8080
socket_collection_name: 'websocket'
pubsub_server: 'https://pubsubhubbub.appspot.com/'
......@@ -14,11 +15,13 @@ development:
test:
debug: false
socket_debug : false
socket_host: 0.0.0.0
socket_port: 8081
pubsub_server: 'https://pubsubhubbub.appspot.com/'
production:
debug: false
socket_debug : false
socket_host: 0.0.0.0
socket_port: 8080
pubsub_server: 'https://pubsubhubbub.appspot.com/'
......@@ -24,7 +24,7 @@ begin
Diaspora::WebSocket.initialize_channels
EventMachine::WebSocket.start(
:host => "0.0.0.0",
:host => APP_CONFIG[:socket_host],
:port => APP_CONFIG[:socket_port],
:debug =>APP_CONFIG[:socket_debug]) do |ws|
ws.onopen {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment