cmd: add option to disable embedded outpost

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-29 19:19:13 +02:00
parent e872371970
commit 45731d8069
2 changed files with 7 additions and 4 deletions

View File

@ -60,7 +60,9 @@ func main() {
for { for {
go attemptStartBackend(g) go attemptStartBackend(g)
ws.Start() ws.Start()
go attemptProxyStart(ws, u) if !config.G.Web.DisableEmbeddedOutpost {
go attemptProxyStart(ws, u)
}
<-ex <-ex
running = false running = false

View File

@ -27,9 +27,10 @@ type RedisConfig struct {
} }
type WebConfig struct { type WebConfig struct {
Listen string `yaml:"listen"` Listen string `yaml:"listen"`
ListenTLS string `yaml:"listen_tls"` ListenTLS string `yaml:"listen_tls"`
LoadLocalFiles bool `yaml:"load_local_files" env:"AUTHENTIK_WEB_LOAD_LOCAL_FILES"` 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 { type PathsConfig struct {