Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ics-ans-role-tinyproxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex Thibault-Ferial
ics-ans-role-tinyproxy
Commits
972bbf69
Commit
972bbf69
authored
5 years ago
by
Remy Mudingay
Browse files
Options
Downloads
Patches
Plain Diff
simplified upstream server declaration and ability to disable filters
parent
8868bbac
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+13
-10
13 additions, 10 deletions
README.md
defaults/main.yml
+9
-2
9 additions, 2 deletions
defaults/main.yml
templates/tinyproxy.conf
+5
-7
5 additions, 7 deletions
templates/tinyproxy.conf
with
27 additions
and
19 deletions
README.md
+
13
−
10
View file @
972bbf69
...
...
@@ -49,7 +49,19 @@ tinyproxy_listen_address: [default: 0.0.0.0]
tinyproxy_port
:
[
default
:
8888
]
#Define a list of urls (http) and domains (https) that clients can access (whitelist)
tinyproxy_urls
:
tinyproxy_urls
:
[]
#Enable upstream proxy
tinyproxy_upstream
:
false
#Provide list of upstream proxies
tinyproxy_upstream_proxies
:
[]
-
address
:
port
:
url
:
#Enable or disable URL Filtering rules
tinyproxy_filter
:
true
#Setup Tinyproxy filtering rules
tinyproxy_filtering
:
...
...
@@ -60,15 +72,6 @@ tinyproxy_filtering:
default_deny
:
On
case_sensitive
:
Off
#List of upstream proxies to use
tinyproxy_upstream_proxies
:
[
default
:
[]]
#Address of upstream proxy in form host:port
tinyproxy_upstream_proxies.{n}.address
:
[
required
]
:
#Optional URLs for which we want to use upstream proxy for.
tinyproxy_upstream_proxies.{n}.url
:
[
optional
]
:
```
Example playbook
...
...
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
9
−
2
View file @
972bbf69
...
...
@@ -15,12 +15,19 @@ tinyproxy_listen_addresses:
-
0.0.0.0
tinyproxy_port
:
8888
tinyproxy_upstream_proxies
:
[]
tinyproxy_connect_ports
:
[]
tinyproxy_urls
:
[]
tinyproxy_upstream
:
false
tinyproxy_upstream_proxies
:
-
address
:
proxy.com
port
:
8080
url
:
local.domain
tinyproxy_filter
:
true
tinyproxy_filtering
:
filter
:
"
/etc/tinyproxy/filter"
urls
:
"
On"
...
...
This diff is collapsed.
Click to expand it.
templates/tinyproxy.conf
+
5
−
7
View file @
972bbf69
...
...
@@ -37,7 +37,7 @@ Allow {{ subnet }}
Deny
{{
subnet
}}
{%
endfor
%}
{%
if
tinyproxy_filter
ing
is
defined
%}
{%
if
tinyproxy_filter
%}
Filter
"{{ tinyproxy_filtering.filter }}"
FilterURLs
{{
tinyproxy_filtering
.
urls
}}
FilterExtended
{{
tinyproxy_filtering
.
extended
}}
...
...
@@ -45,12 +45,10 @@ FilterCaseSensitive {{ tinyproxy_filtering.case_sensitive }}
FilterDefaultDeny
{{
tinyproxy_filtering
.
default_deny
}}
{%
endif
%}
{%
if
tinyproxy_upstream_proxies
is
defined
%}
{%
for
proxy
in
tinyproxy_upstream_proxies
%}
Upstream
{{
proxy
.
address
}} {%
if
proxy
.
url
is
defined
%} {{
proxy
.
url
}} {%
endif
%}
{%
endfor
%}
{%
if
tinyproxy_upstream
%}
{%
for
proxy
in
tinyproxy_upstream_proxies
%}
Upstream
{{
proxy
.
address
}}:{{
proxy
.
port
}} {%
if
proxy
.
url
is
defined
%}
"{{ proxy.url }}"
{%
endif
%}
{%
endfor
%}
{%
endif
%}
ViaProxyName
"tinyproxy"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment