summaryrefslogtreecommitdiff
path: root/provider_base/services/tor.json
blob: 87fb9682780fd4d493c69a469cea88f3c74e1377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "tor": {
    "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(',')",
    "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"
    }
  }
}