3bd0ef8f5127bea5915ac4515b57301e324b08f5
[librecmc/librecmc-fossil.git] /
1 // Autogenerated cjdns.conf
2
3 {
4     "privateKey": "{{cjdns_private_key}}",
5     "publicKey": "{{cjdns_public_key}}",
6     "ipv6": "{{cjdns_ipv6}}",
7     "authorizedPasswords":
8     [
9 {{#if_peering_password}}
10 {"password": "{{peering_password}}"}
11 {{/if_peering_password}}
12     ],
13
14     "admin":
15     {
16         "bind": "127.0.0.1:11234",
17         "password": "6v60ggy58qu0x0013vh64gzsu2lch0y"
18     },
19
20     // Interfaces to connect to the switch core.
21     "interfaces":
22     {
23         "UDPInterface":
24         [
25             {
26                 "bind": "0.0.0.0:{{peering_port}}",
27                 "connectTo":
28                 {
29 {{#if_peerings}}
30 {{#peerings}}
31                     "{{address}}":{"password":"{{password}}","publicKey":"{{public_key}}"},
32 {{/peerings}}
33 {{/if_peerings}}
34                 }
35             }
36         ]
37         "ETHInterface":
38         [
39 {{#autopeering}}
40             {
41                 "bind": "{{interface}}",
42                 "beacon": 2,
43             },
44 {{/autopeering}}
45 {{#if_meshmode}}
46             {
47                 "bind": "wlan0",
48                 "beacon": 2,
49             },
50 {{/if_meshmode}}
51         ]
52     },
53
54     // Configuration for the router.
55     "router":
56     {
57         "interface":
58         {
59             "type": "TUNInterface"
60             //"tunDevice": "tun0"
61         },
62         "ipTunnel":
63         {
64             "allowedConnections":
65             [
66             ],
67             "outgoingConnections":
68             [
69 {{#if_internet_gateway}}
70 {{#internet_gateway}}
71                 "{{public_key}}",
72 {{/internet_gateway}}
73 {{/if_internet_gateway}}
74             ]
75         }
76     },
77
78     "resetAfterInactivitySeconds": 100,
79     //"pidFile": "cjdroute.pid",
80     "security":
81     [
82         "nofiles",
83         {
84             "setuser": "nobody",
85             "exemptAngel": 1
86         }
87      ],
88     "logging":
89     {
90         // "logTo":"stdout"
91     }
92 }