mirror of https://github.com/Xhofe/alist
refactor(aliyunopen,config): Modify default properties (#7476)
parent
2671c876f1
commit
f58de9923a
|
@ -6,7 +6,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Addition struct {
|
type Addition struct {
|
||||||
DriveType string `json:"drive_type" type:"select" options:"default,resource,backup" default:"default"`
|
DriveType string `json:"drive_type" type:"select" options:"default,resource,backup" default:"resource"`
|
||||||
driver.RootID
|
driver.RootID
|
||||||
RefreshToken string `json:"refresh_token" required:"true"`
|
RefreshToken string `json:"refresh_token" required:"true"`
|
||||||
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"`
|
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"`
|
||||||
|
|
|
@ -131,22 +131,22 @@ func DefaultConfig() *Config {
|
||||||
TlsInsecureSkipVerify: true,
|
TlsInsecureSkipVerify: true,
|
||||||
Tasks: TasksConfig{
|
Tasks: TasksConfig{
|
||||||
Download: TaskConfig{
|
Download: TaskConfig{
|
||||||
Workers: 5,
|
Workers: 5,
|
||||||
MaxRetry: 1,
|
MaxRetry: 1,
|
||||||
TaskPersistant: true,
|
// TaskPersistant: true,
|
||||||
},
|
},
|
||||||
Transfer: TaskConfig{
|
Transfer: TaskConfig{
|
||||||
Workers: 5,
|
Workers: 5,
|
||||||
MaxRetry: 2,
|
MaxRetry: 2,
|
||||||
TaskPersistant: true,
|
// TaskPersistant: true,
|
||||||
},
|
},
|
||||||
Upload: TaskConfig{
|
Upload: TaskConfig{
|
||||||
Workers: 5,
|
Workers: 5,
|
||||||
},
|
},
|
||||||
Copy: TaskConfig{
|
Copy: TaskConfig{
|
||||||
Workers: 5,
|
Workers: 5,
|
||||||
MaxRetry: 2,
|
MaxRetry: 2,
|
||||||
TaskPersistant: true,
|
// TaskPersistant: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Cors: Cors{
|
Cors: Cors{
|
||||||
|
|
Loading…
Reference in New Issue