root / trunk / src / dot / proxy / config.sample

Revision 7735, 4.7 kB (checked in by BradNeuberg, 22 months ago)

Created infrastructure to be able to give a 'testDomain' and a 'testDomainAddress' to test disconnected web applications on your own local machine -- Polipo doesn't look up the etc/hosts file, which would be difficult to parse, so we use this as an alternative. Tested on Safari, Firefox, and IE on Windows and Mac/x86

Line 
1# Sample configuration file for Polipo. -*-sh-*-
2
3# You should not need to use a configuration file; all configuration
4# variables have reasonable defaults.  If you want to use one, you
5# can copy this to /etc/polipo/config or to ~/.polipo and modify.
6
7# This file only contains some of the configuration variables; see the
8# list given by ``polipo -v'' and the manual for more.
9
10
11### Basic configuration
12### *******************
13
14# Uncomment one of these if you want to allow remote clients to
15# connect:
16
17# proxyAddress = "::0"        # both IPv4 and IPv6
18# proxyAddress = "0.0.0.0"    # IPv4 only
19
20# If you do that, you'll want to restrict the set of hosts allowed to
21# connect:
22
23# allowedClients = "127.0.0.1, 134.157.168.57"
24# allowedClients = "127.0.0.1, 134.157.168.0/24"
25
26# Uncomment this if you want your Polipo to identify itself by
27# something else than the host name:
28
29# proxyName = "polipo.example.org"
30
31# Uncomment this if there's only one user using this instance of Polipo:
32
33cacheIsShared = false
34
35# Uncomment this if you want to use a parent proxy:
36
37# parentProxy = "squid.example.org:3128"
38
39# Uncomment this if you want to use a parent SOCKS proxy:
40
41# socksParentProxy = "localhost:9050"
42# socksProxyType = socks5
43
44# A test URL that will actually resolve to the address given by
45# 'testDomainAddress'; useful because Polipo does not resolve your local
46# etc/hosts.conf file, which can
47# make testing disconnected web applications running on your local machine
48# difficult
49# testDomain = "brad.com"
50# testDomainAddress = "127.0.0.1"
51
52### Memory
53### ******
54
55# Uncomment this if you want Polipo to use a ridiculously small amount
56# of memory (a hundred C-64 worth or so):
57
58# chunkHighMark = 819200
59# objectHighMark = 128
60
61# Uncomment this if you've got plenty of memory:
62
63# chunkHighMark = 50331648
64# objectHighMark = 16384
65
66
67### On-disk data
68### ************
69
70# Uncomment this if you want to disable the on-disk cache:
71
72# diskCacheRoot = ""
73
74# Uncomment this if you want to put the on-disk cache in a
75# non-standard location:
76
77diskCacheRoot = "~/.polipo-cache/"
78
79# Uncomment this if you want to disable the local web server:
80
81# localDocumentRoot = ""
82
83# Uncomment this if you want to enable the pages under /polipo/index?
84# and /polipo/servers?.  This is a serious privacy leak if your proxy
85# is shared.
86
87# disableIndexing = false
88# disableServersList = false
89
90# Uncomment this if you want to enable offline support for web
91# applications
92
93# disableOfflineSupport = false;
94
95### Domain Name System
96### ******************
97
98# Uncomment this if you want to contact IPv4 hosts only (and make DNS
99# queries somewhat faster):
100
101# dnsQueryIPv6 = no
102
103# Uncomment this if you want Polipo to prefer IPv4 to IPv6 for
104# double-stack hosts:
105
106# dnsQueryIPv6 = reluctantly
107
108# Uncomment this to disable Polipo's DNS resolver and use the system's
109# default resolver instead.  If you do that, Polipo will freeze during
110# every DNS query:
111
112# dnsUseGethostbyname = yes
113
114
115### HTTP
116### ****
117
118# Uncomment this if you want to enable detection of proxy loops.
119# This will cause your hostname (or whatever you put into proxyName
120# above) to be included in every request:
121
122# disableVia=false
123
124# Uncomment this if you want to slightly reduce the amount of
125# information that you leak about yourself:
126
127# censoredHeaders = from, accept-language
128# censorReferer = maybe
129
130# Uncomment this if you're paranoid.  This will break a lot of sites,
131# though:
132
133# censoredHeaders = set-cookie, cookie, cookie2, from, accept-language
134# censorReferer = true
135
136# Uncomment this if you want to use Poor Man's Multiplexing; increase
137# the sizes if you're on a fast line.  They should each amount to a few
138# seconds' worth of transfer; if pmmSize is small, you'll want
139# pmmFirstSize to be larger.
140
141# Note that PMM is somewhat unreliable.
142
143# pmmFirstSize = 16384
144# pmmSize = 8192
145
146# Uncomment this if your user-agent does something reasonable with
147# Warning headers (most don't):
148
149# relaxTransparency = maybe
150
151# Uncomment this if you never want to revalidate instances for which
152# data is available (this is not a good idea):
153
154# relaxTransparency = yes
155
156# Uncomment this if you have no network:
157
158# proxyOffline = yes
159
160# Uncomment this if you want to avoid revalidating instances with a
161# Vary header (this is not a good idea):
162
163# mindlesslyCacheVary = true
164
165### Offline
166### *******
167
168# Uncomment to assign a custom location for where the list of
169# offline enabled web applications is located
170
171# offlineFile = /some/custom/location
172
173# Uncomment to assign a custom location where our Proxy AutoConfig (PAC)
174# file is saved. This PAC file is autogenerated from the list of available
175# offline sites, and is used by a web browser when deciding whether to
176# communicate with the local Polipo instance or not.
177
178# offlinePACFile = /some/custom/location
Note: See TracBrowser for help on using the browser.