]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/config.go
Replace hardcoded version with ldflag usage
[rbdr/mobius] / hotline / config.go
index d6d801e92a9956edcdf9b16e1b65d917103b5751..a30bbf77465c1a21dd6a9e04fb2ef5bfc0a6b45b 100644 (file)
@@ -1,5 +1,11 @@
 package hotline
 
+const (
+       userIdleSeconds        = 300 // time in seconds before an inactive user is marked idle
+       idleCheckInterval      = 10  // time in seconds to check for idle users
+       trackerUpdateFrequency = 300 // time in seconds between tracker re-registration
+)
+
 type Config struct {
        Name                      string   `yaml:"Name" validate:"required,max=50"`         // Name used for Tracker registration
        Description               string   `yaml:"Description" validate:"required,max=200"` // Description used for Tracker registration
@@ -13,4 +19,5 @@ type Config struct {
        MaxDownloadsPerClient     int      `yaml:"MaxDownloadsPerClient"`                   // Per client simultaneous download limit
        MaxConnectionsPerIP       int      `yaml:"MaxConnectionsPerIP"`                     // Max connections per IP
        PreserveResourceForks     bool     `yaml:"PreserveResourceForks"`                   // Enable preservation of file info and resource forks in sidecar files
+       IgnoreFiles               []string `yaml:"IgnoreFiles"`                             // List of regular expression for filtering files from the file list
 }