add insecure option to ocis init

This commit is contained in:
Willy Kloucek
2022-09-26 09:26:04 +02:00
parent 569ffd41f8
commit c997e50b8d
+9 -1
View File
@@ -28,7 +28,12 @@ type InsecureService struct {
} }
type InsecureProxyService struct { type InsecureProxyService struct {
InsecureBackends bool `yaml:"insecure_backends"` OIDC InsecureProxyOIDC `yaml:"oidc"`
InsecureBackends bool `yaml:"insecure_backends"`
}
type InsecureProxyOIDC struct {
Insecure bool `yaml:"insecure"`
} }
type LdapSettings struct { type LdapSettings struct {
@@ -282,6 +287,9 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
} }
cfg.Proxy = InsecureProxyService{ cfg.Proxy = InsecureProxyService{
InsecureBackends: true, InsecureBackends: true,
OIDC: InsecureProxyOIDC{
Insecure: true,
},
} }
cfg.Thumbnails.Thumbnail.WebdavAllowInsecure = true cfg.Thumbnails.Thumbnail.WebdavAllowInsecure = true