diff --git a/.gitignore b/.gitignore index b1b5a14..19f8f07 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,5 @@ go.work.sum bin/** build/** -config/config.yaml diff --git a/Makefile b/Makefile index b784fc1..c70d0bc 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ debian: build build/debian/gowebrtc/etc/gowebrtc/ \ build/debian/gowebrtc/lib/systemd/system \ build/debian/gowebrtc/usr/share/gowebrtc - cp -v config/config.yaml.sample build/debian/gowebrtc/etc/gowebrtc + cp -v config/config.yaml build/debian/gowebrtc/etc/gowebrtc cp -v bin/gowebrtc build/debian/gowebrtc/usr/local/bin cp -v gowebrtc.service build/debian/gowebrtc/lib/systemd/system cp -av html build/debian/gowebrtc/usr/share/gowebrtc diff --git a/config/config.yaml b/config/config.yaml new file mode 100644 index 0000000..d7010fa --- /dev/null +++ b/config/config.yaml @@ -0,0 +1,22 @@ +port: 8082 +url: /ws +image_width: 640 +image_height: 480 +framerate: 30 +log_file: /var/log/gowebrtc.log +audio_device: alsasrc device=plughw:CARD=I930,DEV=0 +video_device: autovideosrc +signalling: websocket +signalling_credentials: + - user: username + password: password +disconnect_on_reconnect: true +use_internal_turn: true +turn_configuration: + public_ip: 1.2.3.4 + port: 8084 + threads: 4 + users: + - user: username + password: password + diff --git a/config/config.yaml.sample b/config/config.yaml.sample deleted file mode 100644 index 32ffed3..0000000 --- a/config/config.yaml.sample +++ /dev/null @@ -1,8 +0,0 @@ -port: 8080 -url: /stream -image_width: 640 -image_height: 480 -framerate: 30 -log_file: /var/log/gowebrtc.log -audio_device: alsasrc device=plughw:CARD=I930,DEV=0 -video_device: autovideosrc