diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-07-24 17:54:17 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-07-24 17:54:17 -0700 |
| commit | 6988a0571d5d37ea0f38ee3e4066533158f608bc (patch) | |
| tree | 172010de54ea7e732d7daa836db659021dc8a933 /config.go | |
Initial squashed commit
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config.go b/config.go new file mode 100644 index 0000000..e0c20cf --- /dev/null +++ b/config.go @@ -0,0 +1,21 @@ +package hotline + +const ( + defaultAgreement = "This is an agreement. Say you agree.\r" + defaultMessageBoard = "Welcome to Hotline\r" + defaultThreadedNews = "Categories:\n" +) + +type Config struct { + Name string `yaml:"Name"` // Name used for Tracker registration + Description string `yaml:"Description"` // Description used for Tracker registration + BannerID int `yaml:"BannerID"` // Unimplemented + FileRoot string `yaml:"FileRoot"` // Path to Files + EnableTrackerRegistration bool `yaml:"EnableTrackerRegistration"` // Toggle Tracker Registration + Trackers []string `yaml:"Trackers"` // List of trackers that the server should register with + NewsDelimiter string `yaml:"NewsDelimiter"` // String used to separate news posts + NewsDateFormat string `yaml:"NewsDateFormat"` // Go template string to customize news date format + MaxDownloads int `yaml:"MaxDownloads"` // Global simultaneous download limit + MaxDownloadsPerClient int `yaml:"MaxDownloadsPerClient"` // Per client simultaneous download limit + MaxConnectionsPerIP int `yaml:"MaxConnectionsPerIP"` // Max connections per IP +} |