git ssb

1+

Dominic / ssb-config



Commit d55abd9fb6c43535849cc72fbc56314441d5ad38

Fix indention in examples

Anders Rune Jensen authored on 9/14/2018, 6:28:51 PM
GitHub committed on 9/14/2018, 6:28:51 PM
Parent: ffffc199fa6ede0d59ae4a4eaaa729281ba72885

Files changed

README.mdchanged
README.mdView
@@ -37,38 +37,35 @@
3737 The default is the following. It specifies the default TCP `net`work transport for incoming and outging connections, using secret-handshake/boxstream ([shs](https://github.com/auditdrivencrypto/secret-handshake)) for authentication and encryption.
3838
3939 ```json
4040 "connections": {
41-
42-"incoming": {
43- "net": [{ "port": 8008, "scope": "private", "transform": "shs" }]
41 + "incoming": {
42 + "net": [{ "port": 8008, "scope": "private", "transform": "shs" }]
43 + },
44 + "outgoing": {
45 + "net": [{ "transform": "shs" }]
46 + }
4447 },
45-
46-"outgoing": {
47- "net": [{ "transform": "shs" }]
48-}
49-
50-},
5148 ```
5249
5350 If you want to use [Tor](https://torproject.org) to create outgoing connections you can specify your `outgoing` like this. It will use `localhost:9050` as the socks server for creating this.
5451
5552 ```json
5653 "connections": {
57- "outgoing": {
58- "onion": [{ "transform": "shs" }]
59- }
60- },
54 + "outgoing": {
55 + "onion": [{ "transform": "shs" }]
56 + }
57 +},
6158 ```
6259
6360 If you want to run a peer behind NAT or other kind of proxy but still want sbot to be able to create invites for the outside addres, you can specify a `public` scope as your `incoming.net` by defining the `external` paramter like this:
6461
6562 ```json
6663 "incoming": {
67-"net": [
68- { "scope": "public", "external": ["cryptop.home"], "transform": "shs", "port": 8008 },
69- { "scope": "private", "transform": "shs", "port": 8008, "host": "internal1.con.taine.rs" },
70-]
64 + "net": [
65 + { "scope": "public", "external": ["cryptop.home"], "transform": "shs", "port": 8008 },
66 + { "scope": "private", "transform": "shs", "port": 8008, "host": "internal1.con.taine.rs" },
67 + ]
7168 },
7269 ```
7370
7471 One thing to notice is that you _need_ `incoming` connections for Apps (like patchwork or git-ssb) to function. By default they use the same authentication mechanism (shs) to grant access to the database, choosing access levels depending on the keypair that opens the connection. If you connect to yourself, you get full access (query and publish). If a remote peer connects, it can only replicate. So be sure to have **at least one** `incoming` connection.

Built with git-ssb-web