LoginSignup
0

More than 5 years have passed since last update.

tinyproxy

Last updated at Posted at 2016-12-14
  • 2MB

docker-compose

touch tinyproxy.conf
tinyproxy.conf
User tinyproxy
Group tinyproxy
Port 8888
Timeout 600
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"
LogLevel Info
MaxClients 100
MinSpareServers 5
MaxSpareServers 20
StartServers 10
MaxRequestsPerChild 0
ViaProxyName "tinyproxy"
DisableViaHeader Yes
ConnectPort 443
ConnectPort 563

Allow 192.168.xx.xx
Allow 192.168.xx.xx
docker-compose.yml
proxy:
  image: tukiyo3/alpine-tinyproxy
  restart: always
  volumes:
    - ./tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf
  ports:
    - "8888:8888"

docker run

docker run \
 -d \
 --restart=always \
 -it \
 -p 8888:8888 \
 tukiyo3/alpine-tinyproxy
# -v $(pwd)/tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf \
proxy.sh
export http_proxy="http://ipaddr:8888/"
export https_proxy=$http_proxy
proxy経由での通信を有効にする
source proxy.sh

yumのproxy設定

/etc/yum.conf
+ proxy=http://ipaddr:8888

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0