add ipv6 and disable UDP, update perms on docker run

This commit is contained in:
ryan.kuba 2023-04-10 11:31:54 -07:00
parent 308a5edbe0
commit a299ce4fa2
3 changed files with 4 additions and 0 deletions

View File

@ -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
View File

View 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 \