Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oefenweb/ansible-tinyproxy
Ansible role to set up tinyproxy in Debian-like systems
https://github.com/oefenweb/ansible-tinyproxy
ansible debian proxy tinyproxy ubuntu
Last synced: about 1 month ago
JSON representation
Ansible role to set up tinyproxy in Debian-like systems
- Host: GitHub
- URL: https://github.com/oefenweb/ansible-tinyproxy
- Owner: Oefenweb
- License: mit
- Created: 2018-05-03T09:21:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-02T11:07:41.000Z (about 1 year ago)
- Last Synced: 2023-11-02T11:37:47.661Z (about 1 year ago)
- Topics: ansible, debian, proxy, tinyproxy, ubuntu
- Language: Dockerfile
- Size: 68.4 KB
- Stars: 9
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## tinyproxy
[![CI](https://github.com/Oefenweb/ansible-tinyproxy/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-tinyproxy/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-tinyproxy-blue.svg)](https://galaxy.ansible.com/Oefenweb/tinyproxy)Set up [tinyproxy](https://tinyproxy.github.io/) 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
```yaml
---
- hosts: all
roles:
- oefenweb.tinyproxy
```##### Advance
```yaml
---
- 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](https://github.com/Oefenweb/ansible-tinyproxy/issues)!