From c997e50b8d177cd72e97a8a12b20585dc1272dbd Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Mon, 26 Sep 2022 09:06:13 +0200 Subject: [PATCH] add insecure option to `ocis init` --- ocis/pkg/init/init.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ocis/pkg/init/init.go b/ocis/pkg/init/init.go index a700bcdee..512ba4ae6 100644 --- a/ocis/pkg/init/init.go +++ b/ocis/pkg/init/init.go @@ -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