diff --git a/scripts/deploy_webserver.sh b/scripts/deploy_webserver.sh index 069fdaf..ff5d3ce 100755 --- a/scripts/deploy_webserver.sh +++ b/scripts/deploy_webserver.sh @@ -15,10 +15,10 @@ certbot -n --nginx -d ${DOMAINNAME} -d www.${DOMAINNAME} --agree-tos -m "${letse # Put the website files in place cp -r "$(dirname "$0")"/../website/* /var/www/html for file in $(grep -lR 192.168 /var/www/html/); do - sed -i $file -e s/"192\.168\.122\.229"/"${DOMAINNAME}"/g + sed -i $file -e s/"ws:\/\/"/"wss:\/\/"/g done for file in $(grep -lR 192.168 /var/www/html/); do - sed -i $file -e s/"ws:\/\/"/"wss:\/\/"/g + sed -i $file -e s/"192\.168\.122\.229"/"${DOMAINNAME}"/g done # Patch the NGINX configuration for the web sockets