webdav visitor

This commit is contained in:
Xhofe
2021-12-28 17:05:16 +08:00
parent 4c00866249
commit 6f5914ae6f
4 changed files with 60 additions and 14 deletions

View File

@ -158,7 +158,7 @@ func InitSettings() {
},
{
Key: "WebDAV username",
Value: "alist",
Value: "alist_admin",
Description: "WebDAV username",
Type: "string",
Access: model.PRIVATE,
@ -166,12 +166,44 @@ func InitSettings() {
},
{
Key: "WebDAV password",
Value: "alist",
Value: "alist_admin",
Description: "WebDAV password",
Type: "string",
Access: model.PRIVATE,
Group: model.BACK,
},
{
Key: "artplayer whitelist",
Value: "*",
Description: "refer to https://artplayer.org/document/options#whitelist",
Type: "string",
Access: model.PUBLIC,
Group: model.FRONT,
},
{
Key: "artplayer autoSize",
Value: "true",
Description: "refer to https://artplayer.org/document/options#autosize",
Type: "bool",
Access: model.PUBLIC,
Group: model.FRONT,
},
{
Key: "Visitor WebDAV username",
Value: "alist_visitor",
Description: "Visitor WebDAV username",
Type: "string",
Access: model.PRIVATE,
Group: model.BACK,
},
{
Key: "Visitor WebDAV password",
Value: "alist_visitor",
Description: "Visitor WebDAV password",
Type: "string",
Access: model.PRIVATE,
Group: model.BACK,
},
}
for i, _ := range settings {
v := settings[i]