Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
7183730a
Commit
7183730a
authored
Sep 24, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the default list of ICE servers empty, update docs.
parent
6a4784da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
13 deletions
+42
-13
README
README
+41
-12
data/ice-servers.json
data/ice-servers.json
+1
-1
No files found.
README
View file @
7183730a
# Installation
Build the server binary:
## Build the server binary
CGO_ENABLED=0 go build -ldflags='-s -w'
Create a server certificate:
## Create a server certificate
mkdir data
openssl req -newkey rsa:2048 -nodes -keyout data/key.pem -x509 -days 365 -out data/cert.pem
Set the server administrator's username and password (optional):
## Set the server administrator credentials
This step is optional.
echo 'god:topsecret' > data/passwd
Configure the list of STUN and TURN servers (optional):
## Set up a TURN server
This step is optional, but unless you set up a TURN server, your server
will be inaccessible from most enterprise and many university networks.
For best results, set up TURN over TCP on port 443 (HTTPS); if port 443 is
not available, port 1194 (OpenVPN) is a good choice.
The address of the TURN server is configured in the file
`data/ice-servers.json`. It should look like this:
[{
"urls":["turn:turn.example.com:443?transport=tcp"],
"username":"username",
"credential":"password"
}]
vi data/ice-servers.json
The *username* and *password* should be the same as the ones in your TURN
server's configuration.
Set up a group
## Set up a group
A group is set up by creating a file `groups/name.json`. The available
options are described below.
mkdir groups
vi groups/public.json
...
...
@@ -29,16 +49,25 @@ Set up a group
"max-users":100
}
Copy the necessary files to your server:
## Copy the necessary files to your server:
Assuming you have set up a user *sfu*:
rsync -a sfu static data groups server.example.org:/home/sfu/
rsync -a sfu static data
sfu@
groups server.example.org:/home/sfu/
Run the server binary:
##
Run the server binary:
ssh server.example.org
cd /home/sfu/
ssh sfu@server.example.org
nohup ./sfu &
If you are using *runit*, use a script like the following:
#!/bin/sh
exec 2>&1
cd ~sfu
exec setuidgid sfu ./sfu
If you are using *systemd*, use `Type=simple` in your service file.
# Locations
...
...
@@ -98,7 +127,7 @@ specifies that any username will do. The empty dictionary
{}
specifies that any username will do and that password are not verified.
specifies that any username will do and that password
s
are not verified.
# Commands
...
...
data/ice-servers.json
View file @
7183730a
[
{
"urls"
:[
"stun:stun.l.google.com:19302"
]}
]
[]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment