Commit 7df1fc61 authored by Alessio Caiazza's avatar Alessio Caiazza

Merge branch 'jv-doc-auth-socket' into 'master'

Add table explaining interaction between authBackend and authSocket

See merge request gitlab-org/gitlab-workhorse!463
parents 9301e2ff 9eb156ae
......@@ -147,6 +147,23 @@ the `authBackend` setting:
gitlab-workhorse -authBackend http://localhost:8080/gitlab
```
### Interaction of authBackend and authSocket
The interaction between `authBackend` and `authSocket` can be a bit
confusing. It comes down to: if `authSocket` is set it overrides the
_host_ part of `authBackend` but not the relative path.
In table form:
|authBackend|authSocket|Workhorse connects to?|Rails relative URL|
|---|---|---|---|
|unset|unset|`localhost:8080`|`/`|
|`http://localhost:3000`|unset|`localhost:3000`|`/`|
|`http://localhost:3000/gitlab`|unset|`localhost:3000`|`/gitlab`|
|unset|`/path/to/socket`|`/path/to/socket`|`/`|
|`http://localhost:3000`|`/path/to/socket`|`/path/to/socket`|`/`|
|`http://localhost:3000/gitlab`|`/path/to/socket`|`/path/to/socket`|`/gitlab`|
## Installation
To install gitlab-workhorse you need [Go 1.8 or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment