Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Wiedler <iwiedler@gitlab.com>2020-04-29 20:03:29 +0300
committerIgor Wiedler <iwiedler@gitlab.com>2020-04-29 20:03:29 +0300
commit245060539bcca5e6d52f38bee1c9d23a516911d3 (patch)
tree98ee5b05c787b7157798579c582efa84d4f2d2e7 /app_config.go
parentddabe70ff60e44bc0b072138f019a6d6b0b411c7 (diff)
introduce separate config flag internal-gitlab-server
Diffstat (limited to 'app_config.go')
-rw-r--r--app_config.go3
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.