tests - fix behind-reverse-proxy/linux

This commit is contained in:
bunkerity 2022-08-16 11:08:58 +02:00
parent 70992a0b50
commit 505d5c2ae4
No known key found for this signature in database
GPG key ID: 3D80806F12602A7C
2 changed files with 2 additions and 6 deletions

View file

@ -1,6 +1,3 @@
global
log stdout format raw local0 info
defaults
timeout connect 5s
timeout client 5s

View file

@ -15,11 +15,10 @@ elif [ ! -z $APT ] ; then
fi
cp haproxy.cfg /etc/haproxy
sed -i "s/8080/80/" /etc/haproxy/haproxy.cfg
sed -i "s/*:8080/*:80/" /etc/haproxy/haproxy.cfg
sed -i "s/mybunker/127.0.0.1/" /etc/haproxy/haproxy.cfg
systemctl stop bunkerweb
systemctl stop haproxy
#systemctl start haproxy
haproxy -f /etc/haproxy/haproxy.cfg > /tmp/haproxy.log &
systemctl start haproxy
echo "hello" > /opt/bunkerweb/www/index.html