diff options
author | mh <mh@immerda.ch> | 2016-11-01 20:26:20 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-11-01 20:26:20 +0100 |
commit | 720c1670750345e8c361219a58c2722a603e26bb (patch) | |
tree | 0379a2c21c3c2b7f32d9c8f149040f128efa858b /templates/onionbalance | |
parent | 4510682dff23142df5de4cfcc988e4319fcb73cd (diff) |
add support for onionbalance
Diffstat (limited to 'templates/onionbalance')
-rw-r--r-- | templates/onionbalance/Debian.torrc.erb | 5 | ||||
-rw-r--r-- | templates/onionbalance/RedHat.torrc.erb | 13 | ||||
-rw-r--r-- | templates/onionbalance/config.yaml.erb | 10 |
3 files changed, 28 insertions, 0 deletions
diff --git a/templates/onionbalance/Debian.torrc.erb b/templates/onionbalance/Debian.torrc.erb new file mode 100644 index 0000000..4b1afc4 --- /dev/null +++ b/templates/onionbalance/Debian.torrc.erb @@ -0,0 +1,5 @@ +# Tor config for the onionbalance management server +# --- +# The onionbalance service must be able to access the Tor control port. +ControlPort 9051 +SocksPort 0 diff --git a/templates/onionbalance/RedHat.torrc.erb b/templates/onionbalance/RedHat.torrc.erb new file mode 100644 index 0000000..023748b --- /dev/null +++ b/templates/onionbalance/RedHat.torrc.erb @@ -0,0 +1,13 @@ +# Tor config for the onionbalance management server +# --- +# The onionbalance service must be able to access the Tor control port. + +DataDirectory /var/lib/tor/onionbalance-data + +ControlPort 9051 +CookieAuthentication 1 +SocksPort 0 + +CookieAuthFileGroupReadable 1 +CookieAuthFile /run/tor/onionbalance.control.authcookie + diff --git a/templates/onionbalance/config.yaml.erb b/templates/onionbalance/config.yaml.erb new file mode 100644 index 0000000..3f45bd1 --- /dev/null +++ b/templates/onionbalance/config.yaml.erb @@ -0,0 +1,10 @@ +# OnionBalance Config File +services: +<% @services.keys.sort.each do |key| -%> +- instances: +<% (@services[key].keys - ['_key_content']).sort.each do |inst| -%> + - address: <%= @services[key][inst] %> + name: <%= inst %> +<% end -%> + key: <%= key %>.key +<% end -%> |