From 45731d80698115a2456455d9c1ce32f28935a678 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 29 Aug 2021 19:19:13 +0200 Subject: [PATCH] cmd: add option to disable embedded outpost Signed-off-by: Jens Langhammer --- cmd/server/main.go | 4 +++- internal/config/struct.go | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index fad48d310..b7101839a 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -60,7 +60,9 @@ func main() { for { go attemptStartBackend(g) ws.Start() - go attemptProxyStart(ws, u) + if !config.G.Web.DisableEmbeddedOutpost { + go attemptProxyStart(ws, u) + } <-ex running = false diff --git a/internal/config/struct.go b/internal/config/struct.go index a71220628..b28bb7df4 100644 --- a/internal/config/struct.go +++ b/internal/config/struct.go @@ -27,9 +27,10 @@ type RedisConfig struct { } type WebConfig struct { - Listen string `yaml:"listen"` - ListenTLS string `yaml:"listen_tls"` - LoadLocalFiles bool `yaml:"load_local_files" env:"AUTHENTIK_WEB_LOAD_LOCAL_FILES"` + Listen string `yaml:"listen"` + ListenTLS string `yaml:"listen_tls"` + LoadLocalFiles bool `yaml:"load_local_files" env:"AUTHENTIK_WEB_LOAD_LOCAL_FILES"` + DisableEmbeddedOutpost bool `yaml:"disable_embedded_outpost" env:"AUTHENTIK_WEB__DISABLE_EMBEDDED_OUTPOST"` } type PathsConfig struct {