diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /workhorse/main.go | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'workhorse/main.go')
-rw-r--r-- | workhorse/main.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/workhorse/main.go b/workhorse/main.go index de282b2c670..f5cb3f77746 100644 --- a/workhorse/main.go +++ b/workhorse/main.go @@ -95,7 +95,7 @@ func buildConfig(arg0 string, args []string) (*bootConfig, *config.Config, error fset.StringVar(&cfg.Socket, "authSocket", "", "Optional: Unix domain socket to dial authBackend at") // actioncable backend - cableBackend := fset.String("cableBackend", upstream.DefaultBackend.String(), "ActionCable backend") + cableBackend := fset.String("cableBackend", "", "ActionCable backend") fset.StringVar(&cfg.CableSocket, "cableSocket", "", "Optional: Unix domain socket to dial cableBackend at") fset.StringVar(&cfg.DocumentRoot, "documentRoot", "public", "Path to static files content") @@ -123,9 +123,14 @@ func buildConfig(arg0 string, args []string) (*bootConfig, *config.Config, error return nil, nil, fmt.Errorf("authBackend: %v", err) } - cfg.CableBackend, err = parseAuthBackend(*cableBackend) - if err != nil { - return nil, nil, fmt.Errorf("cableBackend: %v", err) + if *cableBackend != "" { + // A custom -cableBackend has been specified + cfg.CableBackend, err = parseAuthBackend(*cableBackend) + if err != nil { + return nil, nil, fmt.Errorf("cableBackend: %v", err) + } + } else { + cfg.CableBackend = cfg.Backend } tomlData := "" |