quickshare/configs/dev.yml
2022-01-23 18:55:43 +08:00

48 lines
1,016 B
YAML

fs:
root: "tmp"
opensLimit: 128
openTTL: 60 # 1 min
secrets:
tokenSecret: ""
server:
debug: true
host: "127.0.0.1"
port: 8686
readTimeout: 4000
writerTimeout: 86400000 # 1 day
maxHeaderBytes: 512
publicPath: "public"
captchaWidth: 256
captchaHeight: 60
captchaEnabled: true
uploadSpeedLimit: 409600 # 400KB/limiterCyc
downloadSpeedLimit: 409600 # 400KB/limiterCyc
spaceLimit: 104857600 # 100MB
limiterCapacity: 1000
limiterCyc: 1000 # 1s
users:
enableAuth: true
defaultAdmin: ""
defaultAdminPwd: ""
cookieTTL: 604800 # 1 week
cookieSecure: false
cookieHttpOnly: true
minUserNameLen: 2
minPwdLen: 4
predefinedUsers:
- name: "demo"
pwd: "Quicksh@re"
role: "user"
workers:
queueSize: 1024
sleepCyc: 1 # in second
workerCount: 2
site:
clientCfg:
siteName: "Quickshare"
siteDesc: "quick and simple file sharing"
bg:
url: "/static/img/textured_paper.png"
repeat: "repeat"
position: "center"
align: "fixed"