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
2022-04-20Move healthcheck middleware to a separate packagefeistel
add Cache-Control: no-store to status response
2022-01-31fix: fix metrics and logs not including domain resolution timeVladimir Shushlin
Currently we do logging and metrics capturing after we did the domain information lookup. It allows us to add more information to access logs. But it also distorts metrics because domain information lookup takes time. This logic was originally introduced in https://gitlab.com/gitlab-org/gitlab-pages/-/merge_requests/157/diffs It didn't matter back than because we didn't lookup domain via API as we do now. Now it does matter. So this commits moves metrics and logging middlewares almost to the top of pipeline. Changelog: fixed
2021-10-14test: assert metric counterJaime Martinez
2021-10-14feat: add panic handler middlewareJaime Martinez
Changelog: added
2021-08-26refactor: remove internal/source/domains packagefeistel
2021-08-20test: update healthcheck test for disk source removalfeistel
2021-08-20test: remove leftover tests requiring source diskfeistel
2021-08-20test: remove domain-config-source=gitlab from test and remove tests using ↵feistel
disk source
2021-08-10fix: do not fail to print --versiondo-not-fail-for-versionJaime Martinez
when there are missing parameters such as `--listen-http` by splitting configuration loading and validation. Related to omnibus-gitlab#6321. Changelog: other
2021-08-03refactor: fail to start without listenersJaime Martinez
defined as part of the configuration during daemon initialization. Changelog: other
2021-04-29Use config package in GitLab clientJaime Martinez
Uses the `internal/config/` client inside the `internal/source/gitlab/` package which makes it easier to extend the configuration. This is an iteration of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/543. Changelog: other
2021-04-28Handle and return errors in internal/config/feistel
2021-03-01Pass address of Config to app class and make the config field explicitBalasankar "Balu" C
Signed-off-by: Balasankar "Balu" C <balasankarc@autistici.org>
2021-03-01Move configuration parsing to Config packageBalasankar "Balu" C
Changelog: changed Signed-off-by: Balasankar "Balu" C <balasankarc@autistici.org>
2020-08-07Revert "Merge branch 'revert-a3365a7b' into 'master'"revert-185e0a0Jaime Martinez
This reverts commit 185e0a0e5c621f350335495291c535e5c05df89b, reversing changes made to a3365a7b1b41b3dee206cbcf27e915ee45d556a5.
2020-08-04Revert "Merge branch 'use-domain-config-source-disk' into 'master'"revert-a3365a7bVladimir Shushlin
This reverts merge request !305
2020-08-04Make initialization of gitlab client more explicitJaime Martinez
Add more test cases for domains. Support sourceAuto and use IsReady for gitlab source.
2020-02-28Extract health check in its own middlewareKrasimir Angelov
This way we short-circuit health check requests and avoid doing domain lookup for them. We also do not report them in exported Prometheus metrics and this way avoid trigger alerts during deploys. Related to: * https://gitlab.com/gitlab-org/gitlab-pages/issues/350 * https://gitlab.com/gitlab-com/gl-infra/production/issues/1681
2020-02-03use gorilla/handlers.ProxyHeaders to get the X-Forwarded-* headers and set ↵Jaime Martinez
them in the appropriate http.Request fields