summaryrefslogtreecommitdiff
path: root/templates/torrc.relay.erb
blob: 74a7c61cd9d05d4a5e2bcfea2782ea1d050a2a33 (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
39
40
41
42
43
44
45
46
# relay
<%- if port != 0 then -%>
ORPort <%= port %>
<%-   for listen_address in listen_addresses -%>
ORListenAddress <%= listen_address %>
<%-   end -%>
<%-   for outbound_bindaddress in real_outbound_bindaddresses -%>
OutboundBindAddress <%= outbound_bindaddress %>
<%-   end -%>
<%-   if nickname != '' then -%>
Nickname <%= nickname %>
<%-   end -%>
<%-   if address != '' then -%>
Address <%= address %>
<%-   end -%>
<%-   if portforwarding != '0' then -%>
PortForwarding <%= portforwarding %>
<%-   end -%>
<%-   if bandwidth_rate != '' then -%>
BandwidthRate <%= bandwidth_rate %> KB
<%-   end -%>
<%-   if bandwidth_burst != '' then -%>
BandwidthBurst <%= bandwidth_burst %> KB
<%-   end -%>
<%-   if relay_bandwidth_rate != '0' then -%>
RelayBandwidthRate <%= relay_bandwidth_rate %> KB
<%-   end -%>
<%-   if relay_bandwidth_burst != '0' then -%>
RelayBandwidthBurst <%= relay_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 -%>