]>
Commit | Line | Data |
---|---|---|
6988a057 JH |
1 | package hotline |
2 | ||
6988a057 | 3 | type 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 | |
fd740bc4 | 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 |
b8c0a83a | 16 | IgnoreFiles []string `yaml:"IgnoreFiles"` // List of regular expression for filtering files from the file list |
d03ffd88 | 17 | EnableBonjour bool `yaml:"EnableBonjour"` // Enable service announcement on local network with Bonjour |
6988a057 | 18 | } |