]> git.r.bdr.sh - rbdr/mobius/blame - hotline/config.go
Implement bufio.Scanner for transaction parsing
[rbdr/mobius] / hotline / config.go
CommitLineData
6988a057
JH
1package hotline
2
6988a057 3type Config struct {
041c2df6
JH
4 Name string `yaml:"Name" validate:"required,max=50"` // Name used for Tracker registration
5 Description string `yaml:"Description" validate:"required,max=200"` // Description used for Tracker registration
9067f234 6 BannerFile string `yaml:"BannerFile"` // Path to banner jpg
041c2df6
JH
7 FileRoot string `yaml:"FileRoot" validate:"required"` // Path to Files
8 EnableTrackerRegistration bool `yaml:"EnableTrackerRegistration"` // Toggle Tracker Registration
9 Trackers []string `yaml:"Trackers" validate:"dive,hostname_port"` // List of trackers that the server should register with
10 NewsDelimiter string `yaml:"NewsDelimiter"` // String used to separate news posts
11 NewsDateFormat string `yaml:"NewsDateFormat"` // Go template string to customize news date format
12 MaxDownloads int `yaml:"MaxDownloads"` // Global simultaneous download limit
13 MaxDownloadsPerClient int `yaml:"MaxDownloadsPerClient"` // Per client simultaneous download limit
14 MaxConnectionsPerIP int `yaml:"MaxConnectionsPerIP"` // Max connections per IP
7cd900d6 15 PreserveResourceForks bool `yaml:"PreserveResourceForks"` // Enable preservation of file info and resource forks in sidecar files
6988a057 16}