git ssb

30+

cel / git-ssb-web



Commit 96aff9dafdb188a781d3b37c947f1e02bee95ab8

Readme: clarify config options

cel committed on 8/25/2019, 9:01:50 PM
Parent: a2e4bfb1c3aad80b5a96cc0f888f9af1f6af6021

Files changed

README.mdchanged
README.mdView
@@ -37,30 +37,37 @@
3737
3838 ```
3939 git ssb web [<options>] [<host:port>]
4040 ```
41-- `host`: hostname to listen on. defaults to `localhost`.
42-- `port`: port to listen on. defaults to `7718`.
4341
44-Options:
45-- `--public`: make the app read-only (e.g. disable making digs), to make it
46- suitable for serving publicly
42 +`host` and `port` override the `host` and `port` settings from the config (described below), and default to `localhost:7718`.
4743
44 +Options are passed to `ssb-config`, so e.g. `--public` sets config `{"public": true}`.
45 +
4846 ## Config
4947
5048 `~/.ssb/config`:
5149 ```
5250 {
51 + "public": false,
5352 "git-ssb-web": {
5453 "host": "127.0.0.1",
5554 "port": 7718,
5655 "computeIssueCounts": false
5756 }
5857 }
5958 ```
6059
61-Set `computeIssueCounts` to `true` to calculate counts of open issues and pull requests to display in the navigation links of a repo. This involves an expensive query at startup.
60 +top-level config options:
6261
62 +- `public` (boolean): make the app not publish messages, so it is more suitable for public web hosting. Disables making digs or modifying issues, opening pull-requests, etc.
63 +
64 +`git-ssb-web` config options:
65 +
66 +- `host`: hostname to listen on. defaults to `localhost`.
67 +- `port`: port to listen on. defaults to `7718`.
68 +- `computeIssueCounts` (boolean): Calculate counts of open issues and pull requests to display in the navigation links of a repo. This involves an expensive query at startup. Default: `false`.
69 +
6370 ## Screenshots
6471
6572 ![screenshot](&f2f7WFd2qr2aKd5DFvYKZgmeSdJ3rayqQg0DxwLSCRg=.sha256)
6673

Built with git-ssb-web