diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2020-09-30 12:39:55 +0300 |
---|---|---|
committer | Vladimir Shushlin <vshushlin@gitlab.com> | 2020-09-30 12:39:55 +0300 |
commit | f31b6f894ed96a6fdd49ba73ca10cac0e466e4cd (patch) | |
tree | 645dc82f9b4cc6c2394d3aa605ad37623262b17d /internal/redirects/redirects.go | |
parent | 2e9bd40bd61de95cbb8c7e598c71753d3f7475cb (diff) |
Increase max redirects filesize
GitLab docs project already exceeds 32k, so
increasing to 64k to meet the 42k needs, plus
extra space for further increases
Diffstat (limited to 'internal/redirects/redirects.go')
-rw-r--r-- | internal/redirects/redirects.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/redirects/redirects.go b/internal/redirects/redirects.go index f6ec766e..48dc2c05 100644 --- a/internal/redirects/redirects.go +++ b/internal/redirects/redirects.go @@ -23,8 +23,10 @@ const ( // It follows Netlify's syntax but we don't support the special options yet like splats, placeholders, query parameters // - https://docs.netlify.com/routing/redirects/ // - https://docs.netlify.com/routing/redirects/redirect-options/ - ConfigFile = "_redirects" - maxConfigSize = 32 * 1024 + ConfigFile = "_redirects" + + // Check https://gitlab.com/gitlab-org/gitlab-pages/-/issues/472 before increasing this value + maxConfigSize = 64 * 1024 ) var ( |