1
0

Added a chroot option.

This commit is contained in:
Alexander Andreev 2022-02-08 22:48:56 +04:00
parent 3a1e044b6d
commit a78001bf22
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
listen_on: "tcp :29101" listen_on: "tcp :29101"
hash_salt: "iyP3oZWHI3xO3XBF7s78Vg" hash_salt: "iyP3oZWHI3xO3XBF7s78Vg"
user: "dwupload" user: "dwupload"
chroot: ""
log: log:
stdout: true stdout: true
error: "/var/log/dwelling-upload/error.log" error: "/var/log/dwelling-upload/error.log"

View File

@ -13,6 +13,7 @@ type Configuration struct {
ListenOn string `yaml:"listen_on"` ListenOn string `yaml:"listen_on"`
HashSalt string `yaml:"hash_salt"` HashSalt string `yaml:"hash_salt"`
User string `yaml:"user"` User string `yaml:"user"`
Chroot string `yaml:"chroot"`
Log struct { Log struct {
ToStdout bool `yaml:"stdout"` ToStdout bool `yaml:"stdout"`
Error string `yaml:"error"` Error string `yaml:"error"`