1
0

Changed config struct.

This commit is contained in:
Alexander Andreev 2022-02-07 04:47:26 +04:00
parent 48545f0781
commit c5e9b48de7
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -11,12 +11,14 @@ import (
// Configuration holds a list of process names to be tracked and a listen address.
type Configuration struct {
ListenOn string `yaml:"listen_on"`
HashSalt string `yaml:"hash_salt"`
WebDir string `yaml:"web_dir"`
Uploads struct {
Directory string `yaml:"directory"`
Limits struct {
FileSize string `yaml:"file_size"`
KeepForHours int `yaml:"keep_for_hours"`
Storage string `yaml:"storage"`
FileSize int64 `yaml:"file_size"`
KeepForHours int `yaml:"keep_for_hours"`
Storage int64 `yaml:"storage"`
} `yaml:"limits"`
} `yaml:"uploads"`
}