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 {