su3 RebuildInterval: 24h --> 90h, numRi per su3 file: 75 --> 77
This commit is contained in:
12
README.md
12
README.md
@@ -8,10 +8,10 @@ This tool provides a secure and efficient reseed server for the I2P network. The
|
||||
If you have go installed you can download, build, and install this tool with `go get`
|
||||
|
||||
```
|
||||
$ export GOPATH=$HOME/go
|
||||
$ cd $GOPATH
|
||||
$ go get github.com/martin61/i2p-tools
|
||||
$ bin/i2p-tools -h
|
||||
export GOPATH=$HOME/go
|
||||
cd $GOPATH
|
||||
go get github.com/martin61/i2p-tools
|
||||
bin/i2p-tools -h
|
||||
```
|
||||
|
||||
## Usage
|
||||
@@ -19,13 +19,13 @@ $ bin/i2p-tools -h
|
||||
### Locally behind a webserver (reverse proxy setup), preferred:
|
||||
|
||||
```
|
||||
$ GOPATH=$HOME/go; cd $GOPATH; bin/i2p-tools reseed --signer=you@mail.i2p --key=you_at_mail.i2p.pem --netdb=/home/i2p/.i2p/netDb --port=8443 --ip=127.0.0.1 --trustProxy
|
||||
GOPATH=$HOME/go; cd $GOPATH; bin/i2p-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --port=8443 --ip=127.0.0.1 --trustProxy
|
||||
```
|
||||
|
||||
### Without webserver, standalone with tls support
|
||||
|
||||
```
|
||||
$ GOPATH=$HOME/go; cd $GOPATH; bin/i2p-tools reseed --signer=you@mail.i2p --key=you_at_mail.i2p.pem --netdb=/home/i2p/.i2p/netDb --tlsHost=your-domain.tld
|
||||
GOPATH=$HOME/go; cd $GOPATH; bin/i2p-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --tlsHost=your-domain.tld
|
||||
```
|
||||
|
||||
If this is your first time running a reseed server (ie. you don't have any existing keys), you can simply run the command and follow the prompts to create the appropriate keys and certificates.
|
||||
|
||||
@@ -53,7 +53,7 @@ func NewReseedCommand() cli.Command {
|
||||
},
|
||||
cli.IntFlag{
|
||||
Name: "numRi",
|
||||
Value: 75,
|
||||
Value: 77,
|
||||
Usage: "Number of routerInfos to include in each su3 file",
|
||||
},
|
||||
cli.IntFlag{
|
||||
@@ -63,7 +63,7 @@ func NewReseedCommand() cli.Command {
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "interval",
|
||||
Value: "24h",
|
||||
Value: "90h",
|
||||
Usage: "Duration between SU3 cache rebuilds (ex. 12h, 15m)",
|
||||
},
|
||||
cli.StringFlag{
|
||||
|
||||
4
main.go
4
main.go
@@ -14,10 +14,10 @@ func main() {
|
||||
|
||||
app := cli.NewApp()
|
||||
app.Name = "i2p-tools"
|
||||
app.Version = "0.1.1"
|
||||
app.Version = "0.1.2"
|
||||
app.Usage = "I2P tools and reseed server"
|
||||
app.Author = "martin61"
|
||||
app.Email = "na"
|
||||
app.Email = "noemail"
|
||||
app.Flags = []cli.Flag{}
|
||||
app.Commands = []cli.Command{
|
||||
cmd.NewReseedCommand(),
|
||||
|
||||
@@ -53,9 +53,8 @@ func NewReseeder(netdb NetDbProvider) *ReseederImpl {
|
||||
return &ReseederImpl{
|
||||
netdb: netdb,
|
||||
su3s: make(chan [][]byte),
|
||||
NumRi: 75,
|
||||
// RebuildInterval: 24 * time.Hour,
|
||||
RebuildInterval: 72 * time.Hour,
|
||||
NumRi: 77,
|
||||
RebuildInterval: 90 * time.Hour,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user