3 # General-purpose options.
5 # We chdir to this directory when we start; all files with relative
6 # pathnames are created under this directory
9 # Either a file in which to write our pid, or None
10 PIDFILE = "bridgedb.pid"
12 # Files from which we read descriptors on start and SIGHUP
13 # XXXX SIGHUP not implemented.
14 BRIDGE_FILES = [ "./cached-descriptors", "./cached-descriptors.new" ]
16 # Only consider routers whose purpose matches this string.
17 BRIDGE_PURPOSE = "bridge"
18 # File to store persistent info in.
19 DB_FILE = "./bridgedist.db"
20 # File to log changes to persistent info in. For debugging and bugfixing.
21 DB_LOG_FILE = "./bridgedist.log"
22 # File in which we store our secret HMAC root key.
23 MASTER_KEY_FILE = "./secret_key"
25 # How many clusters do we group IPs in when distributing bridges based on IP?
29 # Options related to HTTPS
31 # True if we are enabling distribution via HTTP or HTTPS; False otherwise.
33 # What proportion of bridges do we allocate to HTTP distribution? See
34 # EMAIL_SHARE and RESERVED_SHARE.
36 # An IP address (form "1.2.3.4") where we listen for HTTPS connections.
37 # "None" to listen on the default interface.
39 # Port to listen on for incoming HTTPS connections
42 HTTPS_CERT_FILE="cert"
44 HTTPS_KEY_FILE="privkey.pem"
45 # IP and port to listen on for unencrypted HTTP connections. Debugging only.
46 HTTP_UNENCRYPTED_BIND_IP=None
47 HTTP_UNENCRYPTED_PORT=None
48 # How many bridges do we give back in an answer?
49 HTTPS_N_BRIDGES_PER_ANSWER=2
52 # Options related to Email
54 # True if we are enabling distribution via Email; false otherwise.
56 # What proportion of bridges do we allocate to Email distribution? See
57 # HTTPS_SHARE and RESERVED_SHARE.
59 # Canonical versions of domains that we will reply to.
60 EMAIL_DOMAINS = [ "gmail.com", "yahoo.com" ]
61 # Map from unofficial domain to canonical domain.
62 EMAIL_DOMAIN_MAP = { "mail.google.com" : "gmail.com",
63 "googlemail.com" : "gmail.com",
65 # If there are any IPs in this list, only allow incoming connections from
68 # IP and port to listen on for email connections. Debugging only.
71 # How many bridges to we give back in an answer?
72 EMAIL_N_BRIDGES_PER_ANSWER=2
75 # Options related to unallocated bridges.
77 # We split bridges into a group accessible by HTTPS queries; a group
78 # accessible by email queries; and a group that we don't assign to any
79 # query mechanism. Once a bridge is assigned to either of the first
80 # two groups, it stays there persistently. The bridges are allocated
81 # to these groups in an proportion of
82 # HTTPS_SHARE : EMAIL_SHARE : RESERVED_SHARE