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
path: root/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'app.go')
-rw-r--r--app.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/app.go b/app.go
index a802f96d..5468036d 100644
--- a/app.go
+++ b/app.go
@@ -21,6 +21,7 @@ import (
"gitlab.com/gitlab-org/gitlab-pages/internal/acme"
"gitlab.com/gitlab-org/gitlab-pages/internal/artifact"
"gitlab.com/gitlab-org/gitlab-pages/internal/auth"
+ cfg "gitlab.com/gitlab-org/gitlab-pages/internal/config"
"gitlab.com/gitlab-org/gitlab-pages/internal/domain"
"gitlab.com/gitlab-org/gitlab-pages/internal/handlers"
"gitlab.com/gitlab-org/gitlab-pages/internal/httperrors"
@@ -504,6 +505,11 @@ func runApp(config appConfig) {
log.WithError(err).Warn("Loading extended MIME database failed")
}
+ cfg.Default.Zip.ExpirationInterval = config.ZipCacheExpiry
+ cfg.Default.Zip.CleanupInterval = config.ZipCacheCleanup
+ cfg.Default.Zip.RefreshInterval = config.ZipCacheRefresh
+ cfg.Default.Zip.OpenTimeout = config.ZipeOpenTimeout
+
a.Run()
}