ajout doc proxy upstream

This commit is contained in:
Francois Lesueur
2023-03-02 10:49:20 +01:00
parent 8569a47c03
commit e9ee502ae4
3 changed files with 39 additions and 19 deletions

14
files/customVM.sh.dist Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Upstream proxy
echo "cache_peer 192.168.0.121 parent 3128 0 no-query default
acl all src 0.0.0.0/0.0.0.0
http_access allow all
never_direct allow all" >> /etc/squid/squid.conf
service squid restart
# Un peu de customisation
DEBIAN_FRONTEND=noninteractive apt-get install -y vim rsync
rsync -a /vagrant/files/.emacs* /root/

View File

@ -93,7 +93,7 @@ echo "{
{
\"httpProxy\": \"http://$proxy:3142\",
\"httpsProxy\": \"http://$proxy:3142\",
\"noProxy\": \"*.sns,127.0.0.0/8\"
\"noProxy\": \"*.sns,127.0.0.0/8,100.64.0.0/10\"
}
}
}" > /root/.docker/config.json