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
2020-10-07Enable redirects by default24-redirects-by-defaultEric Eastwood
- Part of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24 - Original feature added in https://gitlab.com/gitlab-org/gitlab-pages/-/merge_requests/336 - Feature was verified working in in production: https://ops.gitlab.net/gitlab-cookbooks/chef-repo/-/merge_requests/4247#note_92527 - Feature toggle docs being removed in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42759
2020-10-01Move tracer to httptransportJaime Martinez
2020-10-01Rename all zip and httprange metricsJaime Martinez
Renames all metrics to make them easier to understand. Adds a missing metric for number of open requests made by httprange.
2020-09-30Add extra metric for currently cached files per archiveJaime Martinez
2020-09-30Use histograms instead of gauges for transport durationsJaime Martinez
2020-09-30Add tests for new metricsJaime Martinez
DRY transport. Add buckets to responsiveness metric.
2020-09-28Ignore `@ hashed` directory for disk sourceJaime Martinez
2020-09-25Apply suggestions from reviewJaime Martinez
2020-09-24Add scraping test for new metricsJaime Martinez
2020-09-24Rebase from base branchJaime Martinez
Add vfs.VFS implementation for zip Fix build errors Clean zip vfs Add tests for Root Add zip serving metric Return a zip.Instance() when source == zip Add simple acceptance test for zip serving Use correct contents No need to start testServer in go routine
2020-09-15Add support for redirects24-add-redirectsEric Eastwood
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
2020-09-15Apply suggestions from feedbackJaime Martinez
Update metric name
2020-09-15Move setup to helper functionJaime Martinez
2020-09-15Update metrics acceptance testsJaime Martinez
Remove metrics_test.go and leave responsibility of testing to acceptance_test.go with `TestPrometheusMetricsCanBeScraped`. Update TODOs with issue links.
2020-08-28Convert TestDomainSource to table testJaime Martinez
Take apiCalled as arg
2020-08-28Add domain-config-source acceptance testsJaime Martinez
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-04Update acceptance tests without gitlabsourceconfigJaime Martinez
2020-08-04Set domain-config-source in acceptance testJaime Martinez
2020-07-06Address MR feedbackJaime Martinez
use correct reference
2020-07-06Move serving 404 logic to domain packageJaime Martinez
Simplify responsibilities of auth package and reduce complexity of app.go deciding which content to serve.
2020-07-06Get namespace domain if auth fails for a private domainJaime Martinez
Add acceptance test and some more domains for testing Move namespace domain serving logic Restore go.sum Remove redundant return Fix linter
2020-07-06Find parent namepsace domain if auth fails for current projectJaime Martinez
Update labkit
2020-07-06Serve custom 404 even in case of auth failureAlessio Caiazza
2020-07-06Add custom 404 acceptance testAlessio Caiazza
2020-07-06Serve custom 404.html file for namespace domainsJaime Martinez
This will allow namespace domains to serve custom 404.html files for public projects. This change adds a check to check for permision only if it's serving a namespace domain with access controls enabled.
2020-06-30Add SSL_CERT_DIR acceptance testJonathon Reinhart
2020-06-11Add units to metric namesJaime Martinez
2020-06-09Use histogram without labelsJaime Martinez
Register ServingTime. Rename DiskServingFileSize so that it's a histogram without needing labels
2020-06-01Enable the remaining lintersJaime Martinez
- ineffassign - misspell - structcheck - typecheck - unconvert - unused - varcheck - whitespace
2020-05-08Write config file for some acceptance testsJaime Martinez
Use filename from closure
2020-05-08Rename test config fileJaime Martinez
2020-05-08Consolidate args validationJaime Martinez
2020-05-08Enforce loading secrets from fileJaime Martinez
Passing secrets via command line is not allowed anymore. A config file should be used instead. The default filename is `gitlab-pages-config`. The following command line options will throw an error and prevent pages from running if set explicitly: - `-auth-client-id` - `-auth-client-secret` - `-auth-secret`
2020-05-04Add a prometheus counter for GitLab API call failuresGrzegorz Bizon
2020-02-05Add acceptance test for serverless metricsGrzegorz Bizon
2020-01-27Add domain configuration duration (from disk) to Prometheus metricsKrasimir Angelov
2020-01-22update acceptance test structure to improve readability and follow the style ↵improve-acceptance-tests-readabilityJaime Martinez
guide
2020-01-22update struct field names for TestAccessControl to follow coding styleJaime Martinez
(cherry picked from commit d6364c55ab51708b3ec92cde07ffa80fa9b84765)
2020-01-10Watch a file to configure which domains should use new gitlab sourceKrasimir Angelov
Instead of passing domains once in an ENV variable we now watcn a config file (specified with `GITLAB_SOURCE_CONFIG_FILE`, defaults to `.gitlab-source-config.yml` and update ednabled/broken domains when it's content change. This way we can control this without having to restart Pages. Related to https://gitlab.com/gitlab-org/gitlab-pages/issues/266.
2019-12-10Merge branch 'master' into feature/gb/gitlab-domains-sourceGrzegorz Bizon
* master: Add support for the port component in the Host header Base64 decode GitLab API secret
2019-12-05Merge branch 'master' into feature/gb/gitlab-domains-sourceGrzegorz Bizon
* master: Check presence of GitLab API secret when building a domains source Make GitLab API Secret a supported parameter Improve error reporting in the main package Check if GitLab API secret has been provided too Avoid using `testify/assert` in favor of `require` Test domains source not fully configured Improve error handing when creating new domains config source Fix formatting in internal/source/gitlab/client/client_test.go Conflicts: acceptance_test.go internal/source/gitlab/client/client_test.go
2019-12-05Base64 decode GitLab API secretKrasimir Angelov
before using it.
2019-12-04Check presence of GitLab API secret when building a domains sourceGrzegorz Bizon
2019-12-04Handle non-existent domains properly using 204 statusGrzegorz Bizon
2019-11-28Use ENV variables to obtain a list of test new source domainsGrzegorz Bizon
2019-11-28Rename new source test fixture to avoid using existing domainGrzegorz Bizon
2019-11-28Simplify acceptance tests for gitlab source a bitGrzegorz Bizon
2019-11-28Merge branch 'master' into feature/gitlab-source-enum-domainsGrzegorz Bizon
* master: Improve GitLab client tests Change GitLab API JWT expire time to 5s Read the context of api-secret-key file and store it in app config Improve gitlab client tests Ensure there is response before defer close it in gitlab.GetVirtualDomain Document acrguments for gitlab.NewClient Add HTTP client to consume GitLab internal API for Pages