All log files now could be in different locations.
This commit is contained in:
parent
cafb305b76
commit
96512808a8
@ -1,7 +1,11 @@
|
|||||||
listen_on: "tcp :29101"
|
listen_on: "tcp :29101"
|
||||||
hash_salt: "iyP3oZWHI3xO3XBF7s78Vg"
|
hash_salt: "iyP3oZWHI3xO3XBF7s78Vg"
|
||||||
web_dir: "web"
|
web_dir: "web"
|
||||||
log_dir: "/var/log/dwelling-upload"
|
user: "dwupload"
|
||||||
|
log:
|
||||||
|
error: "/var/log/dwelling-upload/error.log"
|
||||||
|
upload: "/var/log/dwelling-upload/upload.log"
|
||||||
|
download: "/var/log/dwelling-upload/download.log"
|
||||||
uploads:
|
uploads:
|
||||||
directory: "/srv/uploads"
|
directory: "/srv/uploads"
|
||||||
limits:
|
limits:
|
||||||
|
@ -13,8 +13,13 @@ type Configuration struct {
|
|||||||
ListenOn string `yaml:"listen_on"`
|
ListenOn string `yaml:"listen_on"`
|
||||||
HashSalt string `yaml:"hash_salt"`
|
HashSalt string `yaml:"hash_salt"`
|
||||||
WebDir string `yaml:"web_dir"`
|
WebDir string `yaml:"web_dir"`
|
||||||
LogDir string `yaml:"log_dir"`
|
User string `yaml:"user"`
|
||||||
Uploads struct {
|
Log struct {
|
||||||
|
Error string `yaml:"error"`
|
||||||
|
Upload string `yaml:"upload"`
|
||||||
|
Download string `yaml:"download"`
|
||||||
|
} `yaml:"log"`
|
||||||
|
Uploads struct {
|
||||||
Directory string `yaml:"directory"`
|
Directory string `yaml:"directory"`
|
||||||
Limits struct {
|
Limits struct {
|
||||||
FileSize int64 `yaml:"file_size"`
|
FileSize int64 `yaml:"file_size"`
|
||||||
|
Loading…
Reference in New Issue
Block a user