fix(configs): fine-tune config files
This commit is contained in:
parent
595e7ed2e9
commit
b0e280ee70
4 changed files with 79 additions and 34 deletions
48
configs/demo.yml
Normal file
48
configs/demo.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
fs:
|
||||
root: "/quickshare/root"
|
||||
opensLimit: 1024
|
||||
openTTL: 60 # 1 min
|
||||
secrets:
|
||||
tokenSecret: ""
|
||||
server:
|
||||
debug: false
|
||||
host: "0.0.0.0"
|
||||
port: 8686
|
||||
readTimeout: 2000
|
||||
writerTimeout: 86400000 # 1 day
|
||||
maxHeaderBytes: 512
|
||||
publicPath: "/quickshare/public"
|
||||
users:
|
||||
enableAuth: true
|
||||
defaultAdmin: ""
|
||||
defaultAdminPwd: ""
|
||||
cookieTTL: 604800 # 1 week
|
||||
cookieSecure: false
|
||||
cookieHttpOnly: true
|
||||
minUserNameLen: 3
|
||||
minPwdLen: 6
|
||||
captchaWidth: 256
|
||||
captchaHeight: 60
|
||||
captchaEnabled: true
|
||||
uploadSpeedLimit: 524288 # 500k/limiterCyc
|
||||
downloadSpeedLimit: 524288 # 500k/limiterCyc
|
||||
spaceLimit: 104857600 # 100MB
|
||||
limiterCapacity: 1000
|
||||
limiterCyc: 1000 # 1s
|
||||
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"
|
|
@ -1,6 +1,6 @@
|
|||
fs:
|
||||
root: "tmp"
|
||||
opensLimit: 128
|
||||
opensLimit: 1024
|
||||
openTTL: 60 # 1 min
|
||||
secrets:
|
||||
tokenSecret: ""
|
||||
|
@ -8,18 +8,10 @@ server:
|
|||
debug: true
|
||||
host: "127.0.0.1"
|
||||
port: 8686
|
||||
readTimeout: 4000
|
||||
readTimeout: 2000
|
||||
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: ""
|
||||
|
@ -29,6 +21,14 @@ users:
|
|||
cookieHttpOnly: true
|
||||
minUserNameLen: 2
|
||||
minPwdLen: 4
|
||||
captchaWidth: 256
|
||||
captchaHeight: 60
|
||||
captchaEnabled: true
|
||||
uploadSpeedLimit: 524288 # 500KB/limiterCyc
|
||||
downloadSpeedLimit: 524288 # 500KB/limiterCyc
|
||||
spaceLimit: 104857600 # 100MB
|
||||
limiterCapacity: 1000
|
||||
limiterCyc: 1000 # 1s
|
||||
predefinedUsers:
|
||||
- name: "demo"
|
||||
pwd: "Quicksh@re"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
fs:
|
||||
root: "/quickshare/root"
|
||||
opensLimit: 128
|
||||
opensLimit: 1024
|
||||
openTTL: 60 # 1 min
|
||||
secrets:
|
||||
tokenSecret: ""
|
||||
|
@ -8,18 +8,10 @@ server:
|
|||
debug: false
|
||||
host: "0.0.0.0"
|
||||
port: 8686
|
||||
readTimeout: 5000
|
||||
readTimeout: 2000
|
||||
writerTimeout: 86400000 # 1 day
|
||||
maxHeaderBytes: 512
|
||||
publicPath: "/quickshare/public"
|
||||
captchaWidth: 256
|
||||
captchaHeight: 60
|
||||
captchaEnabled: true
|
||||
uploadSpeedLimit: 102400 # 100k/limiterCyc
|
||||
downloadSpeedLimit: 102400 # 100k/limiterCyc
|
||||
spaceLimit: 104857600 # 100MB
|
||||
limiterCapacity: 1000
|
||||
limiterCyc: 1000 # 1s
|
||||
users:
|
||||
enableAuth: true
|
||||
defaultAdmin: ""
|
||||
|
@ -27,12 +19,17 @@ users:
|
|||
cookieTTL: 604800 # 1 week
|
||||
cookieSecure: false
|
||||
cookieHttpOnly: true
|
||||
minUserNameLen: 4
|
||||
minUserNameLen: 3
|
||||
minPwdLen: 6
|
||||
predefinedUsers:
|
||||
- name: "demo"
|
||||
pwd: "Quicksh@re"
|
||||
role: "user"
|
||||
captchaWidth: 256
|
||||
captchaHeight: 60
|
||||
captchaEnabled: true
|
||||
uploadSpeedLimit: 1048576 # 1MB/limiterCyc
|
||||
downloadSpeedLimit: 1048576 # 1MB/limiterCyc
|
||||
spaceLimit: 104857600 # 100MB
|
||||
limiterCapacity: 1000
|
||||
limiterCyc: 1000 # 1s
|
||||
predefinedUsers: []
|
||||
workers:
|
||||
queueSize: 1024
|
||||
sleepCyc: 1 # in second
|
||||
|
|
|
@ -8,18 +8,10 @@ server:
|
|||
debug: true
|
||||
host: "0.0.0.0"
|
||||
port: 8686
|
||||
readTimeout: 5000
|
||||
readTimeout: 2000
|
||||
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: ""
|
||||
|
@ -29,6 +21,14 @@ users:
|
|||
cookieHttpOnly: true
|
||||
minUserNameLen: 2
|
||||
minPwdLen: 4
|
||||
captchaWidth: 256
|
||||
captchaHeight: 60
|
||||
captchaEnabled: true
|
||||
uploadSpeedLimit: 524288 # 500KB/limiterCyc
|
||||
downloadSpeedLimit: 524288 # 500KB/limiterCyc
|
||||
spaceLimit: 104857600 # 100MB
|
||||
limiterCapacity: 1000
|
||||
limiterCyc: 1000 # 1s
|
||||
workers:
|
||||
queueSize: 1024
|
||||
sleepCyc: 1 # in second
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue