Rename and enhance example config

This commit is contained in:
Christian Claus 2018-04-14 20:41:40 +02:00
parent 35228e4cf7
commit f0612c6422
3 changed files with 55 additions and 10 deletions

View file

@ -0,0 +1,54 @@
# ---------------------------------- Network -----------------------------------
#
# The bind address to use
#
address: "0.0.0.0"
#
# The listening port
#
port: "8000"
# ---------------------------- Transport security ------------------------------
#tls:
# keyFile: key.pem
# certFile: cert.pem
# ------------------------
# ---------------------------------- Content -----------------------------------
#
# The provided base dir
#
dir: "/tmp"
# ----------------------------------- Users ------------------------------------
#
# A list of user definitions
#
users:
#
# user with username 'user', password 'foo' and jailed access to '/tmp/user'
#
user:
password: "$2a$10$yITzSSNJZAdDZs8iVBQzkuZCzZ49PyjTiPIrmBUKUpB0pwX7eySvW"
subdir: "/user"
#
# user with username 'admin', password 'foo' and access to '/tmp'
#
admin:
password: "$2a$10$yITzSSNJZAdDZs8iVBQzkuZCzZ49PyjTiPIrmBUKUpB0pwX7eySvW"
# ---------------------------------- Logging -----------------------------------
#
# Seperated loglevels for file / directory operations. All set to false per
# default.
#
#log:
# create: true
# read: true
# update: true
# delete: true

View file

@ -1,9 +0,0 @@
address: "0.0.0.0" # the bind address
port: "8000" # the listening port
dir: "/home/webdav" # the provided base dir
users:
user: # with password 'foo' and jailed access to '/home/webdav/user'
password: "$2a$10$yITzSSNJZAdDZs8iVBQzkuZCzZ49PyjTiPIrmBUKUpB0pwX7eySvW"
subdir: "/user"
admin: # with password 'foo' and access to '/home/webdav'
password: "$2a$10$DaWhagZaxWnWAOXY0a55.eaYccgtMOL3lGlqI3spqIBGyM0MD.EN6"

View file

@ -67,7 +67,7 @@ func BuildReleases() error {
swd,
swdCli,
"Readme.md",
filepath.Join("examples", "config.yaml"),
filepath.Join("examples", "config-sample.yaml"),
}
archiveName := fmt.Sprintf("swd-%s-%s.zip", t.goos, t.goarch)