Changed config struct.
This commit is contained in:
parent
48545f0781
commit
c5e9b48de7
@ -11,12 +11,14 @@ import (
|
|||||||
// Configuration holds a list of process names to be tracked and a listen address.
|
// Configuration holds a list of process names to be tracked and a listen address.
|
||||||
type Configuration struct {
|
type Configuration struct {
|
||||||
ListenOn string `yaml:"listen_on"`
|
ListenOn string `yaml:"listen_on"`
|
||||||
|
HashSalt string `yaml:"hash_salt"`
|
||||||
|
WebDir string `yaml:"web_dir"`
|
||||||
Uploads struct {
|
Uploads struct {
|
||||||
Directory string `yaml:"directory"`
|
Directory string `yaml:"directory"`
|
||||||
Limits struct {
|
Limits struct {
|
||||||
FileSize string `yaml:"file_size"`
|
FileSize int64 `yaml:"file_size"`
|
||||||
KeepForHours int `yaml:"keep_for_hours"`
|
KeepForHours int `yaml:"keep_for_hours"`
|
||||||
Storage string `yaml:"storage"`
|
Storage int64 `yaml:"storage"`
|
||||||
} `yaml:"limits"`
|
} `yaml:"limits"`
|
||||||
} `yaml:"uploads"`
|
} `yaml:"uploads"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user