Giter Site home page Giter Site logo

monokal / docker-tinyproxy Goto Github PK

View Code? Open in Web Editor NEW
110.0 110.0 65.0 126 KB

A quick and easy to use Dockerised Tinyproxy with configurable ACL.

Home Page: https://hub.docker.com/repository/docker/monokal/tinyproxy

License: Other

Shell 97.71% Dockerfile 2.29%

docker-tinyproxy's People

Contributors

aleksanderllada avatar captn3m0 avatar kerbaras avatar mcglow2 avatar monokal avatar naorunaoru avatar silvio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-tinyproxy's Issues

docker安装后无法使用

[root@VM_0_13_centos srv]# docker logs -f tinyproxy

  • PROG_NAME=DockerTinyproxy
  • PROXY_CONF=/etc/tinyproxy/tinyproxy.conf
  • '[' 1 -lt 1 ']'
  • echo
  • screenOut 'DockerTinyproxy script started...'
    ++ date +%H:%M:%S

[DockerTinyproxy][INFO][06:51:17]: DockerTinyproxy script started...

  • timestamp=06:51:17
  • '[' 1 -ne 2 ']'
  • status=INFO
  • message='DockerTinyproxy script started...'
  • echo -e '[DockerTinyproxy][INFO][06:51:17]: DockerTinyproxy script started...'
  • stopService
  • screenOut 'Checking for running Tinyproxy service...'
    ++ date +%H:%M:%S
    [DockerTinyproxy][INFO][06:51:17]: Checking for running Tinyproxy service...
  • timestamp=06:51:17
  • '[' 1 -ne 2 ']'
  • status=INFO
  • message='Checking for running Tinyproxy service...'
  • echo -e '[DockerTinyproxy][INFO][06:51:17]: Checking for running Tinyproxy service...'
    ++ pidof tinyproxy
  • '[' '' ']'
  • screenOut 'Tinyproxy service not running.'
    ++ date +%H:%M:%S
  • timestamp=06:51:17
  • '[' 1 -ne 2 ']'
  • status=INFO
  • message='Tinyproxy service not running.'
  • echo -e '[DockerTinyproxy][INFO][06:51:17]: Tinyproxy service not running.'
  • export rawRules=ANY
  • rawRules=ANY
    ++ parseAccessRules ANY
    ++ list=
    ++ for ARG in $@
    ++ line='Allow\tANY\n'
    ++ list+='Allow\tANY\n'
    ++ echo 'Allow\tANY\n'
    [DockerTinyproxy][INFO][06:51:17]: Tinyproxy service not running.
    ++ sed 's/.{2}$//'
  • parsedRules='Allow\tANY'
  • unset rawRules
  • setAccess 'Allow\tANY'
  • [[ Allow\tANY == ANY ]]
  • sed -i '-es/^Allow /#Allow /' /etc/tinyproxy/tinyproxy.conf
  • checkStatus 0 'Allowing ANY - Could not edit /etc/tinyproxy/tinyproxy.conf' 'Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
  • case $1 in
  • screenOut SUCCESS 'Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
    [DockerTinyproxy][SUCCESS][06:51:17]: Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.
    ++ date +%H:%M:%S
  • timestamp=06:51:17
  • '[' 2 -ne 2 ']'
  • status=SUCCESS
  • message='Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
  • echo -e '[DockerTinyproxy][SUCCESS][06:51:17]: Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
  • enableLogFile
  • sed -i '-es,^LogLevel Info,LogLevel Connect,' /etc/tinyproxy/tinyproxy.conf
  • tinyproxy -d
    DEBUG Sep 16 06:51:17 [15]: sending stored logs
    DEBUG Sep 16 06:51:17 [15]: done sending stored logs
    /opt/docker-tinyproxy/run.sh: line 128: 15 Bus error tinyproxy -d
  • PROG_NAME=DockerTinyproxy
  • PROXY_CONF=/etc/tinyproxy/tinyproxy.conf
  • '[' 1 -lt 1 ']'
  • echo
  • screenOut 'DockerTinyproxy script started...'

++ date +%H:%M:%S
[DockerTinyproxy][INFO][07:27:45]: DockerTinyproxy script started...

  • timestamp=07:27:45
  • '[' 1 -ne 2 ']'
  • status=INFO
  • message='DockerTinyproxy script started...'
  • echo -e '[DockerTinyproxy][INFO][07:27:45]: DockerTinyproxy script started...'
  • stopService
  • screenOut 'Checking for running Tinyproxy service...'
    ++ date +%H:%M:%S
  • timestamp=07:27:45
  • '[' 1 -ne 2 ']'
  • status=INFO
  • message='Checking for running Tinyproxy service...'
  • echo -e '[DockerTinyproxy][INFO][07:27:45]: Checking for running Tinyproxy service...'
    [DockerTinyproxy][INFO][07:27:45]: Checking for running Tinyproxy service...
    ++ pidof tinyproxy
  • '[' '' ']'
  • screenOut 'Tinyproxy service not running.'
    ++ date +%H:%M:%S
    [DockerTinyproxy][INFO][07:27:45]: Tinyproxy service not running.
  • timestamp=07:27:45
  • '[' 1 -ne 2 ']'
  • status=INFO
  • message='Tinyproxy service not running.'
  • echo -e '[DockerTinyproxy][INFO][07:27:45]: Tinyproxy service not running.'
  • export rawRules=ANY
  • rawRules=ANY
    ++ parseAccessRules ANY
    ++ list=
    ++ for ARG in $@
    ++ line='Allow\tANY\n'
    ++ list+='Allow\tANY\n'
    ++ echo 'Allow\tANY\n'
    ++ sed 's/.{2}$//'
  • parsedRules='Allow\tANY'
  • unset rawRules
  • setAccess 'Allow\tANY'
  • [[ Allow\tANY == ANY ]]
  • sed -i '-es/^Allow /#Allow /' /etc/tinyproxy/tinyproxy.conf
  • checkStatus 0 'Allowing ANY - Could not edit /etc/tinyproxy/tinyproxy.conf' 'Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
  • case $1 in
  • screenOut SUCCESS 'Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
    ++ date +%H:%M:%S
    [DockerTinyproxy][SUCCESS][07:27:45]: Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.
  • timestamp=07:27:45
  • '[' 2 -ne 2 ']'
  • status=SUCCESS
  • message='Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
  • echo -e '[DockerTinyproxy][SUCCESS][07:27:45]: Allowed ANY - Edited /etc/tinyproxy/tinyproxy.conf successfully.'
  • enableLogFile
  • sed -i '-es,^LogLevel Info,LogLevel Connect,' /etc/tinyproxy/tinyproxy.conf
  • tinyproxy -d
    DEBUG Sep 16 07:27:45 [15]: sending stored logs
    /opt/docker-tinyproxy/run.sh: line 128: 15 Bus error tinyproxy -d
    DEBUG Sep 16 07:27:45 [15]: done sending stored logs

Use /dev/stdout instead of logfile+tail

Hello!

I want to ask you, why do you use logfile + tail instead of just set tinyproxy configuration to log into stdout? Is for this any concrete reason?

Regards
Tomasz

wrong path

hello when running image from docker pull dannydirect/tinyproxy

error throws :

/opt/docker-tinyproxy/run.sh: line 150: /usr/bin/tinyproxy: No such file or directory

tinyproxy executable seems to be in /usr/sbin

I suggest to fix this in the run.sh

Whitelist

Hi there, any suggestions on how to add a concept of whitelisting to tinyproxy? Would like to add a file where i can whitelist some domains and completely block anything else. Thanks in advance for any feedback.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.