This will allow this web UI to sit nicely behind a reverse proxy. Dynamically set the ports used for the - VNC service - noVNC service - Pulseaudio socket - VNC audio transport websocket Remove all mentions of the above used ports in the Dockerfile.
48 lines
1.4 KiB
INI
48 lines
1.4 KiB
INI
|
|
[program:x11vnc]
|
|
autostart=false
|
|
autorestart=true
|
|
priority=30
|
|
user=%(ENV_USER)s
|
|
command=/usr/bin/x11vnc -display %(ENV_DISPLAY)s -rfbport %(ENV_PORT_VNC)s -shared -forever
|
|
stopsignal=INT
|
|
stdout_logfile=/home/%(ENV_USER)s/.cache/log/x11vnc.log
|
|
stdout_logfile_maxbytes=10MB
|
|
stdout_logfile_backups=7
|
|
stderr_logfile=/home/%(ENV_USER)s/.cache/log/x11vnc.err.log
|
|
stderr_logfile_maxbytes=10MB
|
|
stderr_logfile_backups=7
|
|
|
|
[program:novnc]
|
|
autostart=false
|
|
autorestart=true
|
|
priority=30
|
|
user=%(ENV_USER)s
|
|
# /opt/noVNC/utils/launch.sh --vnc localhost:${PORT_VNC} --listen ${PORT_NOVNC_SERVICE}
|
|
command=/opt/noVNC/utils/launch.sh --vnc localhost:%(ENV_PORT_VNC)s --listen %(ENV_PORT_NOVNC_SERVICE)s
|
|
environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s"
|
|
stopsignal=INT
|
|
stdout_logfile=/home/%(ENV_USER)s/.cache/log/novnc.log
|
|
stdout_logfile_maxbytes=10MB
|
|
stdout_logfile_backups=7
|
|
stderr_logfile=/home/%(ENV_USER)s/.cache/log/novnc.err.log
|
|
stderr_logfile_maxbytes=10MB
|
|
stderr_logfile_backups=7
|
|
|
|
[program:vncproxy]
|
|
autostart=false
|
|
autorestart=true
|
|
priority=30
|
|
numprocs=1
|
|
startsecs=0
|
|
user=%(ENV_USER)s
|
|
command=/usr/sbin/nginx -c /opt/noVNC/nginx.conf
|
|
environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s"
|
|
stopsignal=INT
|
|
stdout_logfile=/home/%(ENV_USER)s/.cache/log/vncproxy.log
|
|
stdout_logfile_maxbytes=10MB
|
|
stdout_logfile_backups=7
|
|
stderr_logfile=/home/%(ENV_USER)s/.cache/log/vncproxy.err.log
|
|
stderr_logfile_maxbytes=10MB
|
|
stderr_logfile_backups=7
|