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
AgeCommit message (Collapse)Author
2024-01-08Add support for domain level redirectsNaman Jagdish Gala
2023-10-18Remove FF_CONFIGURABLE_ROOT_DIR Feature Flagjanis
2023-06-08Use pages root directory from APIJanis Altherr
2023-05-08Upgrade golangci-lint to v1.52.2 on CIJaime Martinez
2023-04-12Update golangci-lint toolKassio Borges
2022-07-15Revert: open files lazily when serving contentVladimir Shushlin
This reverts merge request https://gitlab.com/gitlab-org/gitlab-pages/-/merge_requests/803 because it caused an incident when serving large compressed files Changelog: fixed
2022-07-07Open files lazily when serving contentfeistel
Changelog: performance
2022-03-11Add correlation_id to all exception capturesKassio Borges
2022-02-18refactor: use testhelpers.Close()yigithankardas
2022-01-26Merge branch 'feat/errorlint' into 'master'Jaime Martinez
build: enable errorlint and use modern error checking See merge request gitlab-org/gitlab-pages!648
2022-01-24test: replace tmpdir workaround with native T tmpfeistel
2022-01-24lint: fix errorlint issuesfeistel
2022-01-20lint: solve internal/serving/disk/symlink linter issuesfeistel
2022-01-19feat: switch to content negotiation libraryfeistel
Changelog: changed
2021-12-24feat: enable Etag cachingVladimir Shushlin
Changelog: added
2021-12-16feat: implement ETag support for zip servingfeistel
Changelog: added
2021-12-15feat: hide handling cache headers behind the faeture flagVladimir Shushlin
vfsServing.ServeCompressedFile logic is quite comples, and I'm afraid that we may handle something not the right way So I want to hide this behind the feature flag before cutting the release Changelog: fixed
2021-12-14Merge branch 'remove/ff-enable-redirects' into 'master'Vladimir Shushlin
refactor: remove FF_ENABLE_REDIRECTS feature flag Closes #618 See merge request gitlab-org/gitlab-pages!582
2021-12-14Merge branch 'fix/sha-lookups' into 'master'Jaime Martinez
test: add sha256 to mocked lookups and fix tests See merge request gitlab-org/gitlab-pages!634
2021-12-08chore: fix linter issueJaime Martinez
2021-12-08chore: apply suggestion from reviewJaime Martinez
2021-12-08chore: fix lint issueJaime Martinez
2021-12-08fix: use if statement instead of switchJaime Martinez
2021-12-08refactor: handle error outside Root callerJaime Martinez
and pretend to serve content even if the request has been cancelled to prevent making extra operations if this happens early in the request chain. For example, if we know the request was cancelled there is no point in checking the redirects or the custom 404 file handler.
2021-12-08fix(vfs): handle context.Canceled errorsJaime Martinez
As not found resources to reduce the number of 500 errors reported in the logs and Sentry. Closes https://gitlab.com/gitlab-org/gitlab-pages/-/issues/669. Changelog: changed.
2021-12-08lint: fix formatting errorsfeistel
2021-12-08test: add sha256 to mocked lookups and fix testsfeistel
2021-12-07chore: upgrade to labkit 1.11.0Jaime Martinez
And report stack trace with error tracking to Sentry. Changelog: other
2021-11-17Merge branch 'fix/native-fs-error' into 'master'Jaime Martinez
refactor: remove vfs.ErrNotExist and switch to go native fs error See merge request gitlab-org/gitlab-pages!569
2021-11-16feat: handle extra headers when serving from compressed zip archivefeistel
Related to https://gitlab.com/gitlab-org/gitlab-pages/-/issues/466 Changelog: added
2021-11-11refactor: remove vfs.ErrNotExist and switch to go native fs errorfeistel
2021-11-08style: uppercase sha256feistel
SHA is an initialism. See https://github.com/golang/go/wiki/CodeReviewComments#initialisms
2021-11-08refactor: read and use file_sha256 as cache key for zip VFSfeistel
Now that the Rails API is serving the archive file_sha256 in the lookup response, we can move away from using the base URL as the key to cache the archive. Changelog: change
2021-09-16refactor: remove FF_ENABLE_REDIRECTS feature flagfeistel
2021-09-09refactor: avoid os.Is.. in favor of errors.Isfeistel
2021-09-09refactor: move away from ioutil (deprecated)feistel
2021-09-02refactor: replace magic numbers with http status codesfeistel
2021-08-25chore: process the first 1000 rules onlyJaime Martinez
2021-08-20Splat and placeholder support in _redirectsNathan Friend
This commit adds support for Netlify-style splats (*) and :placeholders in the _redirects file. Changelog: added
2021-04-22Follow error strings conventionfeistel
2021-03-01Use actual structs in Config struct instead of pointers to themBalasankar "Balu" C
Signed-off-by: Balasankar "Balu" C <balasankarc@autistici.org>
2021-02-08Add test for file outside allowedPathsJaime Martinez
(cherry picked from commit b519027459919125c5227fcb60519bdd18b4c780)
2021-02-08Refactor http client usage in httprageJaime Martinez
Moves the http.Client initialization inside the `httprange` package to the zip VFS. This makes the type `Resource` depend on an http.Client that needs to be passed on initialization. It also makes the zip VFS initialize the client. It's possible to reconfigure it to register a file protocol by calling vfs.Reconfigure explicitly.
2021-01-04Fix for query strings being strippedRobert May
This ensures the query string is persisted when redirecting to add a trailing slash.
2020-11-30Remove default configJaime Martinez
Add todo to reconfigure other vfs
2020-11-30Call reconfigure explicitlyJaime Martinez
2020-11-30Add Reconfigure to serving and VFS interfacesJaime Martinez
2020-11-30Use sync.Once instead of checking for nilJaime Martinez
2020-11-30Increase time for flaky testJaime Martinez
Cleanup
2020-11-30Move flag definition to mainJaime Martinez
Add zip config to appConfig