aboutsummaryrefslogtreecommitdiff
path: root/templates/torrc.relay.erb
blob: 2ab34bfa1a6b0deee9b5eab3ca3cedba8f77724f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# relay
<%- if port != 0 then -%>
ORPort <%= port %>
<%-   for listen_address in listen_addresses -%>
ORListenAddress <%= listen_address %>
<%-   end -%>
<%-   for outbound_bindaddress in outbound_bindaddresses -%>
OutboundBindAddress <%= outbound_bindaddress %>
<%-   end -%>
<%-   if nickname != '' then -%>
Nickname <%= nickname %>
<%-   end -%>
<%-   if address != '' then -%>
Address <%= address %>
<%-   end -%>
<%-   if bandwidth_rate != '0' then -%>
RelayBandwidthRate <%= bandwidth_rate %> KB
<%-   end -%>
<%-   if bandwidth_burst != '0' then -%>
RelayBandwidthBurst <%= bandwidth_burst %> KB
<%-   end -%>
<%-   if accounting_max != '0' then -%>
AccountingMax <%= accounting_max %> GB
<%-     if accounting_start then -%>
AccountingStart <%= accounting_start %>
<%-     end -%>
<%-   end -%>
<%-   if contact_info != '' then -%>
ContactInfo <%= contact_info %>
<%-   end -%>
<%- end -%>
<%- if my_family != '' then -%>
MyFamily <%= my_family %>
<%- end -%>
<%- if bridge_relay != '0' then -%>
BridgeRelay <%= bridge_relay %>
<%- end -%>