We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd728e5 commit 3af0338Copy full SHA for 3af0338
pritunl-nginx-proxy/entrypoint.sh
@@ -119,7 +119,7 @@ envsubst '${NGINX_PORT} ${PROXY_PASS_DEFAULT} ${PROXY_PORT_DEFAULT} ${ADDITIONAL
119
< /etc/nginx/templates/nginx.conf.template > /etc/nginx/nginx.conf.tmp
120
121
# Inject dynamic server blocks before closing HTTP block
122
-sed -i '/^}$/i '"${DYNAMIC_SERVER_BLOCKS}" /etc/nginx/nginx.conf.tmp
+sed -i '/^}$/i '"$(echo "${DYNAMIC_SERVER_BLOCKS}" | sed 's/|/\\|/g')" /etc/nginx/nginx.conf.tmp
123
mv /etc/nginx/nginx.conf.tmp /etc/nginx/nginx.conf
124
125
log "Final Nginx configuration:"
0 commit comments