fix(config): add config loading functions and tests, also fix config issues

This commit is contained in:
hexxa 2022-01-28 22:11:27 +08:00 committed by Hexxa
parent 67da1ea0eb
commit 32a003d789
11 changed files with 42 additions and 69 deletions

View file

@ -9,7 +9,7 @@ server:
host: "0.0.0.0"
port: 8686
readTimeout: 2000
writerTimeout: 86400000 # 1 day
writeTimeout: 86400000 # 1 day
maxHeaderBytes: 512
publicPath: "/quickshare/public"
users:

View file

@ -9,7 +9,7 @@ server:
host: "127.0.0.1"
port: 8686
readTimeout: 2000
writerTimeout: 86400000 # 1 day
writeTimeout: 86400000 # 1 day
maxHeaderBytes: 512
publicPath: "public"
users:

View file

@ -9,7 +9,7 @@ server:
host: "0.0.0.0"
port: 8686
readTimeout: 2000
writerTimeout: 86400000 # 1 day
writeTimeout: 86400000 # 1 day
maxHeaderBytes: 512
publicPath: "/quickshare/public"
users:

View file

@ -9,7 +9,7 @@ server:
host: "0.0.0.0"
port: 8686
readTimeout: 2000
writerTimeout: 86400000 # 1 day
writeTimeout: 86400000 # 1 day
maxHeaderBytes: 512
publicPath: "public"
users: