add insecure option to ocis init

This commit is contained in:
Willy Kloucek
2022-09-26 09:06:13 +02:00
parent 569ffd41f8
commit c997e50b8d

View File

@@ -28,7 +28,12 @@ type InsecureService 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 {
@@ -282,6 +287,9 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
}
cfg.Proxy = InsecureProxyService{
InsecureBackends: true,
OIDC: InsecureProxyOIDC{
Insecure: true,
},
}
cfg.Thumbnails.Thumbnail.WebdavAllowInsecure = true