2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2019-01-08 03:05:11 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package psserver
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2019-01-14 21:19:15 +00:00
|
|
|
"storj.io/storj/internal/memory"
|
2019-01-08 03:05:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Config contains everything necessary for a server
|
|
|
|
type Config struct {
|
2019-03-19 09:10:23 +00:00
|
|
|
Path string `help:"path to store data in" default:"$CONFDIR/storage"`
|
|
|
|
|
2019-01-29 15:41:01 +00:00
|
|
|
WhitelistedSatelliteIDs string `help:"a comma-separated list of approved satellite node ids" default:""`
|
2019-04-19 19:17:30 +01:00
|
|
|
SatelliteIDRestriction bool `help:"if true, only allow data from approved satellites" devDefault:"false" releaseDefault:"true"`
|
2019-01-29 15:41:01 +00:00
|
|
|
AllocatedDiskSpace memory.Size `user:"true" help:"total allocated disk space in bytes" default:"1TB"`
|
|
|
|
AllocatedBandwidth memory.Size `user:"true" help:"total allocated bandwidth in bytes" default:"500GiB"`
|
|
|
|
KBucketRefreshInterval time.Duration `help:"how frequently Kademlia bucket should be refreshed with node stats" default:"1h0m0s"`
|
|
|
|
|
2019-01-10 12:50:50 +00:00
|
|
|
AgreementSenderCheckInterval time.Duration `help:"duration between agreement checks" default:"1h0m0s"`
|
2019-01-29 15:41:01 +00:00
|
|
|
CollectorInterval time.Duration `help:"interval to check for expired pieces" default:"1h0m0s"`
|
2019-01-08 03:05:11 +00:00
|
|
|
}
|