1. Qiita
  2. 投稿
  3. tinyproxy
  • 0
    いいね
  • 0
    コメント
    • 2MB
    docker run \
     -d \
     --restart=always \
     -it \
     -p 8888:8888 \
     tukiyo3/alpine-tinyproxy
    # -v $(pwd)/tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf \
    
    export http_proxy="http://ipaddr:8888/"
    

    docker-compose

    docker-compose.yml
    proxy:
      image: tukiyo3/alpine-tinyproxy
      restart: always
      volumes:
        - ./tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf
      ports:
        - "8888:8888"
    
    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
    
    Allow 192.168.xx.xx
    Allow 192.168.xx.xx
    
    ViaProxyName "tinyproxy"
    
    DisableViaHeader Yes
    
    ConnectPort 443
    ConnectPort 563