make more insecure options configurable and change insecure defaults from true to false
This commit is contained in:
@@ -154,11 +154,18 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "webdavsource-insecure",
|
||||
Value: flags.OverrideDefaultBool(cfg.Thumbnail.WebdavAllowInsecure, true),
|
||||
Value: flags.OverrideDefaultBool(cfg.Thumbnail.WebdavAllowInsecure, false),
|
||||
Usage: "Whether to skip certificate checks",
|
||||
EnvVars: []string{"THUMBNAILS_WEBDAVSOURCE_INSECURE"},
|
||||
Destination: &cfg.Thumbnail.WebdavAllowInsecure,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "cs3source-insecure",
|
||||
Value: flags.OverrideDefaultBool(cfg.Thumbnail.CS3AllowInsecure, false),
|
||||
Usage: "Whether to skip certificate checks",
|
||||
EnvVars: []string{"THUMBNAILS_CS3SOURCE_INSECURE"},
|
||||
Destination: &cfg.Thumbnail.CS3AllowInsecure,
|
||||
},
|
||||
&cli.StringSliceFlag{
|
||||
Name: "thumbnail-resolution",
|
||||
Value: cli.NewStringSlice("16x16", "32x32", "64x64", "128x128", "1920x1080", "3840x2160", "7680x4320"),
|
||||
|
||||
Reference in New Issue
Block a user