mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-08-23 17:47:29 +00:00
Merge pull request #281 from jzelinskie/installfix
README: update development section
This commit is contained in:
commit
baef1c17c3
2 changed files with 53 additions and 20 deletions
39
README.md
39
README.md
|
@ -57,16 +57,49 @@ By verifying the infohash, Quay can be sure that only their content is being sha
|
||||||
|
|
||||||
### Getting Started
|
### Getting Started
|
||||||
|
|
||||||
In order to compile the project, the [latest stable version of Go] and a [working Go environment] are required.
|
#### Building from HEAD
|
||||||
|
|
||||||
|
In order to compile the project, the [latest stable version of Go] and knowledge of a [working Go environment] are required.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ go get -t -u github.com/chihaya/chihaya
|
$ mkdir chihaya
|
||||||
$ go install github.com/chihaya/chihaya/cmd/chihaya
|
$ export GOPATH=$PWD/chihaya
|
||||||
|
$ go get -t -u github.com/chihaya/chihaya/...
|
||||||
|
$ $GOPATH/bin/chihaya --help
|
||||||
```
|
```
|
||||||
|
|
||||||
[latest stable version of Go]: https://golang.org/dl
|
[latest stable version of Go]: https://golang.org/dl
|
||||||
[working Go environment]: https://golang.org/doc/code.html
|
[working Go environment]: https://golang.org/doc/code.html
|
||||||
|
|
||||||
|
#### Reproducible Builds
|
||||||
|
|
||||||
|
Reproducible builds are handled by using [glide] to vendor dependencies.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd $GOPATH/src/github.com/chihaya/chihaya
|
||||||
|
$ glide install
|
||||||
|
$ go install github.com/chihaya/chihaya/...
|
||||||
|
$ $GOPATH/bin/chihaya --help
|
||||||
|
```
|
||||||
|
|
||||||
|
[glide]: https://glide.sh
|
||||||
|
|
||||||
|
#### Docker
|
||||||
|
|
||||||
|
Docker containers are available for [HEAD] and [stable] releases.
|
||||||
|
|
||||||
|
[HEAD]: https://quay.io/jzelinskie/chihaya-git
|
||||||
|
[stable]: https://quay.io/jzelinskie/chihaya
|
||||||
|
|
||||||
|
#### Testing
|
||||||
|
|
||||||
|
The following will run all tests and benchmarks.
|
||||||
|
Removing `-bench` will just run unit tests.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ go test -bench $(glide novendor | grep -v contrib)
|
||||||
|
```
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
||||||
Long-term discussion and bug reports are maintained via [GitHub Issues].
|
Long-term discussion and bug reports are maintained via [GitHub Issues].
|
||||||
|
|
|
@ -67,22 +67,22 @@ chihaya:
|
||||||
# This block defines configuration used for middleware executed before a
|
# This block defines configuration used for middleware executed before a
|
||||||
# response has been returned to a BitTorrent client.
|
# response has been returned to a BitTorrent client.
|
||||||
prehooks:
|
prehooks:
|
||||||
- name: jwt
|
#- name: jwt
|
||||||
config:
|
# config:
|
||||||
issuer: "https://issuer.com"
|
# issuer: "https://issuer.com"
|
||||||
audience: "https://chihaya.issuer.com"
|
# audience: "https://chihaya.issuer.com"
|
||||||
jwk_set_url: "https://issuer.com/keys"
|
# jwk_set_url: "https://issuer.com/keys"
|
||||||
jwk_set_update_interval: 5m
|
# jwk_set_update_interval: 5m
|
||||||
|
|
||||||
- name: client approval
|
#- name: client approval
|
||||||
config:
|
# config:
|
||||||
whitelist:
|
# whitelist:
|
||||||
- "OP1011"
|
# - "OP1011"
|
||||||
blacklist:
|
# blacklist:
|
||||||
- "OP1012"
|
# - "OP1012"
|
||||||
|
|
||||||
- name: interval variation
|
#- name: interval variation
|
||||||
config:
|
# config:
|
||||||
modify_response_probability: 0.2
|
# modify_response_probability: 0.2
|
||||||
max_increase_delta: 60
|
# max_increase_delta: 60
|
||||||
modify_min_interval: true
|
# modify_min_interval: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue