Make the various used ports configurable

This commit is contained in:
Josh.5
2022-02-19 18:07:10 +13:00
parent 75c2df3115
commit 576bf9471c
6 changed files with 32 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ autostart=false
autorestart=true
priority=10
user=%(ENV_USER)s
command=tcpserver localhost 5901 gst-launch-1.0 -q pulsesrc server=/tmp/pulseaudio.socket ! audio/x-raw, channels=2, rate=24000 ! cutter ! opusenc ! webmmux ! fdsink fd=1
command=tcpserver localhost %(ENV_PORT_AUDIO_STREAM)s gst-launch-1.0 -q pulsesrc server=/tmp/pulseaudio.socket ! audio/x-raw, channels=2, rate=24000 ! cutter ! opusenc ! webmmux ! fdsink fd=1
stopsignal=QUIT
stdout_logfile=/home/%(ENV_USER)s/.cache/log/audiostream.log
stdout_logfile_maxbytes=10MB
@@ -18,7 +18,7 @@ autostart=false
autorestart=true
priority=10
user=%(ENV_USER)s
command=/usr/local/bin/websockify 32123 localhost:5901
command=/usr/local/bin/websockify %(ENV_PORT_AUDIO_WEBSOCKET)s localhost:%(ENV_PORT_AUDIO_STREAM)s
stopsignal=QUIT
stdout_logfile=/home/%(ENV_USER)s/.cache/log/audiowebsock.log
stdout_logfile_maxbytes=10MB