summaryrefslogtreecommitdiff
path: root/provider_base/services
diff options
context:
space:
mode:
Diffstat (limited to 'provider_base/services')
-rw-r--r--provider_base/services/tor.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/provider_base/services/tor.json b/provider_base/services/tor.json
index fc365a19..87fb9682 100644
--- a/provider_base/services/tor.json
+++ b/provider_base/services/tor.json
@@ -3,6 +3,13 @@
"bandwidth_rate": 6550,
"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(',')"
+ "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"
+ }
}
}