summaryrefslogtreecommitdiff
path: root/templates/torrc.onion_service.erb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2016-11-04 18:52:39 +0100
committermh <mh@immerda.ch>2016-11-04 18:52:39 +0100
commitd91d70dd378a4a91c740b03b0852432ef128b24a (patch)
tree35f503702086f85a96bfd5fca73d70c701323908 /templates/torrc.onion_service.erb
parentbf16597ec2c0ad155527742fe07e655f555d7f62 (diff)
store key & hostname
Diffstat (limited to 'templates/torrc.onion_service.erb')
-rw-r--r--templates/torrc.onion_service.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/torrc.onion_service.erb b/templates/torrc.onion_service.erb
new file mode 100644
index 0000000..77168d8
--- /dev/null
+++ b/templates/torrc.onion_service.erb
@@ -0,0 +1,6 @@
+# hidden service <%= @name %>
+HiddenServiceDir <%= @data_dir_path %>
+<% Array(@ports).each do |port| -%>
+HiddenServicePort <%= port =~ /^\d+$/ ? "#{port} 127.0.0.1:#{port}" : port %>
+<% end -%>
+