summaryrefslogtreecommitdiff
path: root/provider_base/services/tor.json
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-11-04 12:25:54 -0800
committerguido <guido@bruo.org>2014-11-04 19:16:11 -0300
commit3c06efc2529188c175209d09f8db1932dc4295b8 (patch)
tree1be9fd6794e9371fd3aefd3d4be69a73f1748658 /provider_base/services/tor.json
parent18f5d6ea49446f214cbb764ea223f427aafd641e (diff)
tor - to activate hidden service, now set tor.hidden_service.active = true
Diffstat (limited to 'provider_base/services/tor.json')
-rw-r--r--provider_base/services/tor.json12
1 files changed, 6 insertions, 6 deletions
diff --git a/provider_base/services/tor.json b/provider_base/services/tor.json
index 87fb9682..55d3d2ee 100644
--- a/provider_base/services/tor.json
+++ b/provider_base/services/tor.json
@@ -4,12 +4,12 @@
"contacts": "= [provider.contacts['tor'] || provider.contacts.default].flatten",
"nickname": "= (self.name + secret(:tor_family)).sub('_','')[0..18]",
"family": "= nodes[:services => 'tor'][:environment => '!local'].field('tor.nickname').join(',')",
- "hidden_service": null,
- "key": {
- "type": "RSA",
- "public": "= tor_public_key_path(:node_tor_pub_key, tor.key.type) if tor.hidden_service",
- "private": "= tor_private_key_path(:node_tor_priv_key, tor.key.type) if tor.hidden_service",
- "address": "= onion_address(:node_tor_pub_key) if tor.hidden_service"
+ "hidden_service": {
+ "active": null,
+ "key_type": "RSA",
+ "public_key": "= tor_public_key_path(:node_tor_pub_key, tor.hidden_service.key_type) if tor.hidden_service.active",
+ "private_key": "= tor_private_key_path(:node_tor_priv_key, tor.hidden_service.key_type) if tor.hidden_service.active",
+ "address": "= onion_address(:node_tor_pub_key) if tor.hidden_service.active"
}
}
}