mirror of
https://github.com/linuxserver/docker-baseimage-kasmvnc.git
synced 2026-02-20 08:28:57 +08:00
add ipv6 and disable UDP, update perms on docker run
This commit is contained in:
parent
308a5edbe0
commit
a299ce4fa2
@ -24,6 +24,9 @@ fi
|
||||
cp /defaults/default.conf ${NGINX_CONFIG}
|
||||
sed -i "s/3000/$CPORT/g" ${NGINX_CONFIG}
|
||||
sed -i "s/3001/$CHPORT/g" ${NGINX_CONFIG}
|
||||
if [ ! -z ${DISABLE_IPV6+x} ]; then
|
||||
sed -i '/listen \[::\]/d' ${NGINX_CONFIG}
|
||||
fi
|
||||
if [ ! -z ${PASSWORD+x} ]; then
|
||||
printf "${CUSER}:$(openssl passwd -apr1 ${PASSWORD})\n" > /etc/nginx/.htpasswd
|
||||
sed -i 's/#//g' ${NGINX_CONFIG}
|
||||
|
||||
0
root/etc/s6-overlay/s6-rc.d/svc-docker/run
Normal file → Executable file
0
root/etc/s6-overlay/s6-rc.d/svc-docker/run
Normal file → Executable file
@ -11,6 +11,7 @@ fi
|
||||
exec s6-setuidgid abc \
|
||||
/usr/local/bin/Xvnc $DISPLAY \
|
||||
${HW3D} \
|
||||
-PublicIP 127.0.0.1 \
|
||||
-drinode ${DRINODE} \
|
||||
-disableBasicAuth \
|
||||
-SecurityTypes None \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user