ajout doc proxy upstream
This commit is contained in:
14
files/customVM.sh.dist
Normal file
14
files/customVM.sh.dist
Normal 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/
|
@ -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
|
||||
|
Reference in New Issue
Block a user