Fix order of websocket URL substitution
This commit is contained in:
parent
48ecd04476
commit
9171133fc6
|
@ -15,10 +15,10 @@ certbot -n --nginx -d ${DOMAINNAME} -d www.${DOMAINNAME} --agree-tos -m "${letse
|
||||||
# Put the website files in place
|
# Put the website files in place
|
||||||
cp -r "$(dirname "$0")"/../website/* /var/www/html
|
cp -r "$(dirname "$0")"/../website/* /var/www/html
|
||||||
for file in $(grep -lR 192.168 /var/www/html/); do
|
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
|
done
|
||||||
for file in $(grep -lR 192.168 /var/www/html/); do
|
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
|
done
|
||||||
|
|
||||||
# Patch the NGINX configuration for the web sockets
|
# Patch the NGINX configuration for the web sockets
|
||||||
|
|
Reference in New Issue