Ticket #5362: config

File config, 3.8 KB (added by Phoenix87, 8 years ago)

the standard polipo configuration file

Line 
1## Basic configuration
2### *******************
3
4# Uncomment one of these if you want to allow remote clients to
5# connect:
6
7# proxyAddress = "::0"        # both IPv4 and IPv6
8# proxyAddress = "0.0.0.0"    # IPv4 only
9
10proxyAddress = "127.0.0.1"
11proxyPort = 8118
12
13# If you do that, you'll want to restrict the set of hosts allowed to
14# connect:
15
16# allowedClients = "127.0.0.1, 134.157.168.57"
17# allowedClients = "127.0.0.1, 134.157.168.0/24"
18
19allowedClients = 127.0.0.1
20allowedPorts = 1-65535
21
22# Uncomment this if you want your Polipo to identify itself by
23# something else than the host name:
24
25proxyName = "localhost"
26
27# Uncomment this if there's only one user using this instance of Polipo:
28
29cacheIsShared = false
30
31# Uncomment this if you want to use a parent proxy:
32
33# parentProxy = "squid.example.org:3128"
34
35# Uncomment this if you want to use a parent SOCKS proxy:
36
37socksParentProxy = "localhost:9050"
38socksProxyType = socks5
39
40
41### Memory
42### ******
43
44# Uncomment this if you want Polipo to use a ridiculously small amount
45# of memory (a hundred C-64 worth or so):
46
47# chunkHighMark = 819200
48# objectHighMark = 128
49
50# Uncomment this if you've got plenty of memory:
51
52# chunkHighMark = 50331648
53# objectHighMark = 16384
54
55chunkHighMark = 67108864
56
57### On-disk data
58### ************
59
60# Uncomment this if you want to disable the on-disk cache:
61
62diskCacheRoot = ""
63
64# Uncomment this if you want to put the on-disk cache in a
65# non-standard location:
66
67# diskCacheRoot = "~/.polipo-cache/"
68
69# Uncomment this if you want to disable the local web server:
70
71localDocumentRoot = ""
72
73# Uncomment this if you want to enable the pages under /polipo/index?
74# and /polipo/servers?.  This is a serious privacy leak if your proxy
75# is shared.
76
77# disableIndexing = false
78# disableServersList = false
79
80disableLocalInterface = true
81disableConfiguration = true
82
83### Domain Name System
84### ******************
85
86# Uncomment this if you want to contact IPv4 hosts only (and make DNS
87# queries somewhat faster):
88#
89# dnsQueryIPv6 = no
90
91# Uncomment this if you want Polipo to prefer IPv4 to IPv6 for
92# double-stack hosts:
93#
94# dnsQueryIPv6 = reluctantly
95
96# Uncomment this to disable Polipo's DNS resolver and use the system's
97# default resolver instead.  If you do that, Polipo will freeze during
98# every DNS query:
99
100dnsUseGethostbyname = yes
101
102
103### HTTP
104### ****
105
106# Uncomment this if you want to enable detection of proxy loops.
107# This will cause your hostname (or whatever you put into proxyName
108# above) to be included in every request:
109
110disableVia = true
111
112# Uncomment this if you want to slightly reduce the amount of
113# information that you leak about yourself:
114
115# censoredHeaders = from, accept-language
116# censorReferer = maybe
117
118censoredHeaders = from,accept-language,x-pad,link
119censorReferer = maybe
120
121# Uncomment this if you're paranoid.  This will break a lot of sites,
122# though:
123
124# censoredHeaders = set-cookie, cookie, cookie2, from, accept-language
125# censorReferer = true
126
127# Uncomment this if you want to use Poor Man's Multiplexing; increase
128# the sizes if you're on a fast line.  They should each amount to a few
129# seconds' worth of transfer; if pmmSize is small, you'll want
130# pmmFirstSize to be larger.
131
132# Note that PMM is somewhat unreliable.
133
134# pmmFirstSize = 16384
135# pmmSize = 8192
136
137# Uncomment this if your user-agent does something reasonable with
138# Warning headers (most don't):
139
140# relaxTransparency = maybe
141
142# Uncomment this if you never want to revalidate instances for which
143# data is available (this is not a good idea):
144
145# relaxTransparency = yes
146
147# Uncomment this if you have no network:
148
149# proxyOffline = yes
150
151# Uncomment this if you want to avoid revalidating instances with a
152# Vary header (this is not a good idea):
153
154# mindlesslyCacheVary = true
155
156# Suggestions from Incognito configuration
157maxConnectionAge = 5m
158maxConnectionRequests = 120
159serverMaxSlots = 8
160serverSlots = 2
161tunnelAllowedPorts = 1-65535
162