add insecure option to ocis init
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user