]>
Commit | Line | Data |
---|---|---|
1 | package hotline | |
2 | ||
3 | type Config struct { | |
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 | |
6 | BannerFile string `yaml:"BannerFile"` // Path to Banner jpg | |
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 | |
15 | PreserveResourceForks bool `yaml:"PreserveResourceForks"` // Enable preservation of file info and resource forks in sidecar files | |
16 | IgnoreFiles []string `yaml:"IgnoreFiles"` // List of regular expression for filtering files from the file list | |
17 | EnableBonjour bool `yaml:"EnableBonjour"` // Enable service announcement on local network with Bonjour | |
18 | } |