From 6e49deaaf26b693ca3538b0239ba7f998d81ef37 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 10 Jan 2012 17:41:13 -0200 Subject: splitting config in many templates --- templates/torrc.relay.erb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 templates/torrc.relay.erb (limited to 'templates/torrc.relay.erb') diff --git a/templates/torrc.relay.erb b/templates/torrc.relay.erb new file mode 100644 index 0000000..9531c9b --- /dev/null +++ b/templates/torrc.relay.erb @@ -0,0 +1,36 @@ +# relay + +<%- if port != 0 then -%> +ORPort <%= port %> +<%- for listen_address in listen_addresses -%> +ORListenAddress <%= listen_address %> +<%- end -%> +<%- if nickname != '' then -%> +Nickname <%= nickname %> +<%- end -%> +<%- if address != '' then -%> +Address <%= address %> +<%- 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 +<%- end -%> +<%- for accounting in accounting_start -%> +AccountingStart <%= accounting_start %> +<%- 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 -%> + -- cgit v1.2.3