diff options
author | Igor Wiedler <iwiedler@gitlab.com> | 2020-04-29 20:03:29 +0300 |
---|---|---|
committer | Igor Wiedler <iwiedler@gitlab.com> | 2020-04-29 20:03:29 +0300 |
commit | 245060539bcca5e6d52f38bee1c9d23a516911d3 (patch) | |
tree | 98ee5b05c787b7157798579c582efa84d4f2d2e7 /app_config.go | |
parent | ddabe70ff60e44bc0b072138f019a6d6b0b411c7 (diff) |
introduce separate config flag internal-gitlab-server
Diffstat (limited to 'app_config.go')
-rw-r--r-- | app_config.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app_config.go b/app_config.go index 245a9e0d..44e37f13 100644 --- a/app_config.go +++ b/app_config.go @@ -29,6 +29,7 @@ type appConfig struct { StoreSecret string GitLabServer string + InternalGitLabServer string GitLabAPISecretKey []byte GitlabClientHTTPTimeout time.Duration GitlabJWTTokenExpiration time.Duration @@ -42,7 +43,7 @@ type appConfig struct { // GitlabServerURL returns URL to a GitLab instance. func (config appConfig) GitlabServerURL() string { - return config.GitLabServer + return config.InternalGitLabServer } // GitlabClientSecret returns GitLab server access token. |