From a78001bf2293bb67f5907615ed0ee8f3ceb4a174 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 8 Feb 2022 22:48:56 +0400 Subject: [PATCH] Added a chroot option. --- configs/config.yaml | 1 + internal/configuration/configuration.go | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/config.yaml b/configs/config.yaml index 0dfdb91..962ead2 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -1,6 +1,7 @@ listen_on: "tcp :29101" hash_salt: "iyP3oZWHI3xO3XBF7s78Vg" user: "dwupload" +chroot: "" log: stdout: true error: "/var/log/dwelling-upload/error.log" diff --git a/internal/configuration/configuration.go b/internal/configuration/configuration.go index c7e8ecc..8925df4 100644 --- a/internal/configuration/configuration.go +++ b/internal/configuration/configuration.go @@ -13,6 +13,7 @@ type Configuration struct { ListenOn string `yaml:"listen_on"` HashSalt string `yaml:"hash_salt"` User string `yaml:"user"` + Chroot string `yaml:"chroot"` Log struct { ToStdout bool `yaml:"stdout"` Error string `yaml:"error"`