]>
Commit | Line | Data |
---|---|---|
6988a057 JH |
1 | package hotline |
2 | ||
3 | const ( | |
4 | defaultAgreement = "This is an agreement. Say you agree.\r" | |
5 | defaultMessageBoard = "Welcome to Hotline\r" | |
6 | defaultThreadedNews = "Categories:\n" | |
7 | ) | |
8 | ||
9 | type Config struct { | |
10 | Name string `yaml:"Name"` // Name used for Tracker registration | |
11 | Description string `yaml:"Description"` // Description used for Tracker registration | |
12 | BannerID int `yaml:"BannerID"` // Unimplemented | |
13 | FileRoot string `yaml:"FileRoot"` // Path to Files | |
14 | EnableTrackerRegistration bool `yaml:"EnableTrackerRegistration"` // Toggle Tracker Registration | |
15 | Trackers []string `yaml:"Trackers"` // List of trackers that the server should register with | |
16 | NewsDelimiter string `yaml:"NewsDelimiter"` // String used to separate news posts | |
17 | NewsDateFormat string `yaml:"NewsDateFormat"` // Go template string to customize news date format | |
18 | MaxDownloads int `yaml:"MaxDownloads"` // Global simultaneous download limit | |
19 | MaxDownloadsPerClient int `yaml:"MaxDownloadsPerClient"` // Per client simultaneous download limit | |
20 | MaxConnectionsPerIP int `yaml:"MaxConnectionsPerIP"` // Max connections per IP | |
21 | } |