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

Revision 7735, 4.8 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

  • Property svn:executable set to *
Line 
1# Configuration file for Dojo Offline for Windows
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
49testDomain = "brad.com"
50testDomainAddress = "127.0.0.1"
51
52
53### Memory
54### ******
55
56# Uncomment this if you want Polipo to use a ridiculously small amount
57# of memory (a hundred C-64 worth or so):
58
59# chunkHighMark = 819200
60# objectHighMark = 128
61
62# Uncomment this if you've got plenty of memory:
63
64# chunkHighMark = 50331648
65# objectHighMark = 16384
66
67
68### On-disk data
69### ************
70
71# Uncomment this if you want to disable the on-disk cache:
72
73# diskCacheRoot = ""
74
75# Uncomment this if you want to put the on-disk cache in a
76# non-standard location:
77
78diskCacheRoot = "~/.offline-cache/"
79
80# Uncomment this if you want to disable the local web server:
81
82# localDocumentRoot = ""
83
84# Uncomment this if you want to enable the pages under /polipo/index?
85# and /polipo/servers?.  This is a serious privacy leak if your proxy
86# is shared.
87
88# disableIndexing = false
89# disableServersList = false
90
91# Uncomment this if you want to enable offline support for web
92# applications
93
94disableOfflineSupport = false;
95
96### Domain Name System
97### ******************
98
99# Uncomment this if you want to contact IPv4 hosts only (and make DNS
100# queries somewhat faster):
101
102# dnsQueryIPv6 = no
103
104# Uncomment this if you want Polipo to prefer IPv4 to IPv6 for
105# double-stack hosts:
106
107# dnsQueryIPv6 = reluctantly
108
109# Uncomment this to disable Polipo's DNS resolver and use the system's
110# default resolver instead.  If you do that, Polipo will freeze during
111# every DNS query:
112
113# dnsUseGethostbyname = yes
114
115
116### HTTP
117### ****
118
119# Uncomment this if you want to enable detection of proxy loops.
120# This will cause your hostname (or whatever you put into proxyName
121# above) to be included in every request:
122
123# disableVia=false
124
125# Uncomment this if you want to slightly reduce the amount of
126# information that you leak about yourself:
127
128# censoredHeaders = from, accept-language
129# censorReferer = maybe
130
131# Uncomment this if you're paranoid.  This will break a lot of sites,
132# though:
133
134# censoredHeaders = set-cookie, cookie, cookie2, from, accept-language
135# censorReferer = true
136
137# Uncomment this if you want to use Poor Man's Multiplexing; increase
138# the sizes if you're on a fast line.  They should each amount to a few
139# seconds' worth of transfer; if pmmSize is small, you'll want
140# pmmFirstSize to be larger.
141
142# Note that PMM is somewhat unreliable.
143
144# pmmFirstSize = 16384
145# pmmSize = 8192
146
147# Uncomment this if your user-agent does something reasonable with
148# Warning headers (most don't):
149
150# relaxTransparency = maybe
151
152# Uncomment this if you never want to revalidate instances for which
153# data is available (this is not a good idea):
154
155# relaxTransparency = yes
156
157# Uncomment this if you have no network:
158
159proxyOffline = yes
160
161# Uncomment this if you want to avoid revalidating instances with a
162# Vary header (this is not a good idea):
163
164# mindlesslyCacheVary = true
165
166### Offline
167### *******
168
169# Uncomment to assign a custom location for where the list of
170# offline enabled web applications is located
171
172offlineFile = ~/.offline-list
173# offlineFile = /some/custom/location
174
175# Uncomment to assign a custom location where our Proxy AutoConfig (PAC)
176# file is saved. This PAC file is autogenerated from the list of available
177# offline sites, and is used by a web browser when deciding whether to
178# communicate with the local Polipo instance or not.
179
180offlinePACFile = ~/.offline-pac
181# offlinePACFile = /some/custom/location
Note: See TracBrowser for help on using the browser.