Git Product home page Git Product logo

ansible-tinyproxy's Introduction

tinyproxy

CI Ansible Galaxy

Set up tinyproxy in Debian-like systems.

Requirements

None

Variables

  • tinyproxy_install: [default: []]: Additional packages to install

  • tinyproxy_tinyproxy_conf: [see: defaults/main.yml]: List of lines to be added to /etc/tinyproxy.conf

  • tinyproxy_port: [default: 8888]: The port which tinyproxy will listen on

  • tinyproxy_allow: [default: ["{{ ansible_lo['ipv4']['address'] }}"]]: Customization of authorization controls. If there are any access controls then the default action is to DENY. Otherwise, the default action is ALLOW. The order of the controls are important

  • tinyproxy_connect_port: [default: [443, 563]]: This is a list of ports allowed when the CONNECT method is used. To disable the CONNECT method altogether, set the value to 0. If no item is found, all ports are allowed

Dependencies

None

Example

Simple
---
- hosts: all
  roles:
    - oefenweb.tinyproxy
Advance
---
- hosts: all
  roles:
    - oefenweb.tinyproxy
  vars:
    tinyproxy_tinyproxy_conf:
      - |
        User nobody
        Group nogroup
        Port {{ tinyproxy_port }}
        Timeout 666
        DefaultErrorFile "/usr/share/tinyproxy/default.html"
        StatFile "/usr/share/tinyproxy/stats.html"
        Logfile "/var/log/tinyproxy/tinyproxy.log"
        LogLevel Info
        PidFile "/var/run/tinyproxy/tinyproxy.pid"
        MaxClients 100
        MinSpareServers 5
        MaxSpareServers 20
        StartServers 10
        MaxRequestsPerChild 0
        {% for allow in tinyproxy_allow %}
        Allow {{ allow }}
        {% endfor %}
        ViaProxyName "tinyproxy"
        {% for connect_port in tinyproxy_connect_port %}
        ConnectPort {{ connect_port }}
        {% endfor %}
    tinyproxy_port: 3128
    tinyproxy_allow:
      - "{{ ansible_lo['ipv4']['address'] }}"
      - "{{ ansible_default_ipv4['address'] }}"

License

MIT

Author Information

Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!

ansible-tinyproxy's People

Contributors

kissifrot avatar rssnyder avatar tersmitten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.