.
export JAIL=proxy export JAILHOSTNAME=proxy export JAILDOMAIN=ahlawat.com export JAILIP=4 export JAILUSER=X export JAILUSERID=1000 export JAILUSERVNC=false /root/FreeBSD/jails/create.sh $JAIL $JAILHOSTNAME $JAILDOMAIN $JAILIP $JAILUSER $JAILUSERID $JAILUSERVNC iocage exec $JAIL "pkg install -y haproxy turnserver" iocage exec $JAIL "cp /mnt/config/haproxy.conf /usr/local/etc" iocage exec $JAIL "sysrc haproxy_enable=YES" # haproxy does not log to file so enable syslog port 514 iocage exec $JAIL 'sysrc syslogd_flags="-c -s"' iocage exec $JAIL "service haproxy start" iocage exec $JAIL "cp /mnt/config/secret/turnserver.conf /usr/local/etc/" iocage exec $JAIL "cp /mnt/config/secret/turn.db /usr/local/var/db/" iocage exec $JAIL "sysrc turnserver_enable=YES" iocage exec $JAIL "service turnserver start"
turnadmin -A -u admin -p password