Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
5740c728
Commit
5740c728
authored
14 years ago
by
MrZYX
Committed by
Daniel Grippi
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
made websocket server host configurable
parent
cc4e9f8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/app_config.yml
+3
-0
3 additions, 0 deletions
config/app_config.yml
script/websocket_server.rb
+1
-1
1 addition, 1 deletion
script/websocket_server.rb
with
4 additions
and
1 deletion
config/app_config.yml
+
3
−
0
View file @
5740c728
...
...
@@ -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/'
This diff is collapsed.
Click to expand it.
script/websocket_server.rb
+
1
−
1
View file @
5740c728
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment