From 526b0bee982e9361d90434bd75ab2aeaeec8ea45 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 23 Dec 2022 16:41:53 -0500 Subject: [PATCH] fix haproxy2 --- octoprint_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index deac1f8..81d343e 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -375,7 +375,7 @@ write_camera() { echo "#cam_$INSTANCE start" >> /etc/haproxy/haproxy.cfg echo "backend cam_$INSTANCE" >> /etc/haproxy/haproxy.cfg if [ $HAversion -gt 1 ]; then - echo " reqrep ^([^\ :]*)\ /cam_$INSTANCE/(.*) \1\ /\2" >> /etc/haproxy/haproxy.cfg + echo " http-request replace-path /cam_$INSTANCE/(.*) /\1" >> /etc/haproxy/haproxy.cfg echo " server webcam1 127.0.0.1:$CAMPORT" >> /etc/haproxy/haproxy.cfg else echo " reqrep ^([^\ :]*)\ /cam_$INSTANCE/(.*) \1\ /\2" >> /etc/haproxy/haproxy.cfg