networked-aframe / janus-plugin-sfu

Janus plugin to act as a kind of SFU for game networking data.
Mozilla Public License 2.0
2 stars 5 forks source link

Fix ALLOW_LOOP_INDICATION variable that didn't work #12

Closed vincentfretin closed 6 months ago

vincentfretin commented 6 months ago

with .env:

EVENT_LOOPS=4                                                                      
ALLOW_LOOP_INDICATION=true
docker compose exec -it janus bash
cat ./usr/etc/janus/janus.jcfg |grep loop
        event_loops = 4
        #allow_loop_indication = true

so the ALLOW_LOOP_INDICATION had no effect. This wasn't properly verified when #7 was done.

The config filename was wrong janus.cfg instead of janus.jcfg.

I added the set -e flag to properly log an error if a command fail, for any future contribution.

janus-1  | sed: can't read /usr/etc/janus/janus.cfg: No such file or directory
janus-1 exited with code 2

and I fixed the filename of course.