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:
Diffstat (limited to 'app_config.go')
-rw-r--r--app_config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/app_config.go b/app_config.go
index f9be6545..639ece85 100644
--- a/app_config.go
+++ b/app_config.go
@@ -35,3 +35,13 @@ type appConfig struct {
SentryEnvironment string
CustomHeaders []string
}
+
+// GitlabServerURL returns URL to a GitLab instance.
+func (config appConfig) GitlabServerURL() string {
+ return config.GitLabServer
+}
+
+// GitlabClientSecret returns GitLab server access token.
+func (config appConfig) GitlabAPISecret() []byte {
+ return config.GitLabAPISecretKey
+}