1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00
The Galène videoconference server
Find a file
Antonin Décimo 31a5a8e8f1 Fix escaping of \ in character class.
> Rejeté. Ce n'est pas un escape.

D’après mes tests, c’est considéré comme un escape. Doubler le
caractère serait suffisant.

    const url = 'https://example\\.com';
    const urlRegexp1 = /https?:\/\/[-a-zA-Z0-9@:%/._\+~#=?]+[-a-zA-Z0-9@:%/_\+~#=]/g;
    const urlRegexp2 = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#=?]+[-a-zA-Z0-9@:%/_\\+~#=]/g;
    console.log(url.length); // 20
    console.log(urlRegexp1.exec(url)); // ["https://example"]
    console.log(urlRegexp2.exec(url)); // ["https://example\.com"]
2020-05-11 00:33:58 +02:00
estimator Implement rate estimation. 2020-05-03 11:06:08 +02:00
jitter Include jitter and delay in receiver reports. 2020-05-03 11:06:08 +02:00
mono Move monotonic time to separate package, use microseconds. 2020-05-03 11:06:08 +02:00
packetcache Rework sending of NACKs. 2020-05-03 11:06:08 +02:00
static Fix escaping of \ in character class. 2020-05-11 00:33:58 +02:00
.gitignore Add .gitignore. 2020-04-30 19:13:32 +02:00
client.go Implement reception of audio only. 2020-05-09 22:44:34 +02:00
go.mod Update pion/webrtc to 2.2.9. 2020-05-09 10:42:49 +02:00
go.sum Update pion/webrtc to 2.2.9. 2020-05-09 10:42:49 +02:00
group.go Implement reception of audio only. 2020-05-09 22:44:34 +02:00
README Fix README. 2020-05-03 18:30:01 +02:00
sfu.go Include jitter in track statistics. 2020-05-03 11:06:08 +02:00

Build the server binary:

    CGO_ENABLED=0 go build -ldflags='-s -w'

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):

    echo 'god:topsecret' > data/passwd

Configure the list of STUN and TURN servers (optional):

    vi static/ice-servers.json

Set up a group

    mkdir groups
    vi groups/public.json

    {
      "allow-anonymous":true,
      "public":true,
      "op":[{"username":"jch","password":"1234"}],
      "presenter":[{}],
      "max-users":100
    }

Copy the necessary files to your server:

    rsync -a sfu static data groups server.example.org:/home/sfu/

Run the server binary:

    ssh server.example.org
    cd /home/sfu/
    nohup ./sfu &

-- Juliusz Chroboczek <https://www.irif.fr/~jch/>