Closed cegerhardson closed 7 months ago
vagrant@hg:~$ curl -o /dev/null -s -w "%{http_code}\n" -k -H "Host: hg.python.org" https://192.168.50.19/
000
Is that the expected result?
vagrant@hg:~$ curl -o /dev/null -s -w "%{http_code}\n" -k -H "Host: hg.python.org" https://192.168.50.19/ 000
Is that the expected result?
I get 200s after bringing the loadbalancer up
Hm, okay. I had to destroy everything and bring it back up, but it does work.
These changes prepare hg for future X-Forwarded-For, and rate-limiting configurations.
To test that this is working locally:
laptop:psf-salt user$ vagrant up salt-master
laptop:psf-salt user$ vagrant up loadbalancer
laptop:psf-salt user$ vagrant up hg
vagrant shh hg
sudo apt install curl
for i in {1..20}; do curl -o /dev/null -s -w "%{http_code}\n" -k -H "Host: hg.python.org" https://127.0.0.1:9000; done
for i in {1..20}; do curl -o /dev/null -s -w "%{http_code}\n" -k -H "Host: hg.python.org" https://192.168.50.19/; done