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
2021-08-20refactor: completely remove disk configuration source codefeistel
2021-08-20refactor: remove more unused codefeistel
2021-08-20refactor: remove support for disk configuration sourcefeistel
Changelog: removed
2021-07-07Add correlation_id to outbound requestsJaime Martinez
2021-07-07Improve logging and correlation IDJaime Martinez
2021-01-20Simplify domain and resolver checksJaime Martinez
Return domain not found Returns ErrDomainDoesNotExist when the lookup path cannot be found for a specific project. Closes https://gitlab.com/gitlab-org/gitlab-pages/issues/353 Return ErrDomainDoesNotExist in group resolver
2021-01-20Add more test cases for resolver errorsJaime Martinez
Fix imports and enable test
2021-01-14Move error to domain packageJaime Martinez
Define ErrDomainDoesNotExist in the domain package so it can be returned by the Resolver and handled appropriatley.
2021-01-14Refactor domain packageJaime Martinez
Refactor domain package to handle errors from resolver.
2020-10-13Merge branch 'log-serving-type' into 'master'Vladimir Shushlin
Log serving type Closes #477 See merge request gitlab-org/gitlab-pages!369
2020-10-13Log serving type used for requestslog-serving-typeKamil Trzciński
This extends our structured logging with information about how the given request was served
2020-10-13Ensure the content encoding is correct before reading the bodyfeistel
Avoid strange EOF error when the encoding is wrong
2020-09-28Ignore `@ hashed` directory for disk sourceJaime Martinez
2020-09-15Add support for redirects24-add-redirectsEric Eastwood
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
2020-09-02Rename `disk.Instance()` to `local.Instance()`move-disk-to-localKamil Trzciński
Make `local` to be a special style of disk serving, using the `local.VFS`
2020-08-20Rename `serving/disk/New()` to `serving/disk/Instance()`rename-disk-new-to-instanceKamil Trzciński
The `Instance()` is a correct name for this, as we do not allocate a `Disk` each time, rather return a singleton object.
2020-08-05Fix tests that use illegal ../ pathsJacob Vosmaer
2020-08-04Merge branch '315-gzip-content-length' into 'master'Alessio Caiazza
Set Content-Length when Content-Encoding is set Closes #315 See merge request gitlab-org/gitlab-pages!227
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-05-28Add .golangci.yml linter configurationJaime Martinez
As part of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/385 we have introduced the use of a custom `.golangci.yml` file with some custom rules for linting. This replaces the need of downloading and using `golint`, `gofmt` `go vet` and `gocyclo` manually. We take advantage of the custom `golangci-lint` docker image as stated in the [Automatic lintinb] (https://docs.gitlab.com/ee/development/go_guide/#automatic-linting) section of the Go standards and style guidelines. This iteration enables a subset of linters, with the remaining of them enabled on a separate MR as described in the issue above. The main changes introduced by this linter include: - gosec: potential hardcoded credentials - goconst: DRY by declaring and using constants - gosimple: reduce statements complexity and improve return statements
2020-02-12Merge branch 'master' into feature/gb/serverless-serving-enableGrzegorz Bizon
* master: Add prometheus metrics for GitLab API client Fix benchmarks Freeze tools version Add acceptance test for serverless metrics Update documentation on using Gorilla ProxyHeaders use gorilla/handlers.ProxyHeaders to get the X-Forwarded-* headers and set them in the appropriate http.Request fields Apply suggestion to metrics/metrics.go Add serverless serving metrics Conflicts: internal/serving/serverless/serverless.go
2020-02-11Make it possible to fabricate serving per requestGrzegorz Bizon
2020-02-11Add prometheus metrics for GitLab API clientJaime Martinez
Refactor metrics initialization removing init function from the metrics package.
2020-02-05Fix benchmarksAlessio Caiazza
Go benchmarks must loop over b.N
2020-01-27Add domain configuration duration (from disk) to Prometheus metricsKrasimir Angelov
2020-01-25Set Content-Length when Content-Encoding is gzipMark Francis
2020-01-17Revert godirwalk to v1.10.12Krasimir Angelov
Revert "Merge branch 'master' into 'master'" This reverts commit 1e9f978d74ae0e1d536f1984635021b368802ccb, reversing changes made to 86d619069f226d40d3d0ba97a243db384f133d5f.
2020-01-09dragonfly bsd support by updating godirwalk to v1.14.0Karrick S. McDermott
After running `go test` ran `go mod tidy` to cleanup Go module files. Resolves #316
2019-12-12Fix different issues with slashesKrasimir Angelov
Update code and tests to handle the fact thet API will always return prefix surrounded with slashes (e.g. `/prefix/`) and source.path with trailing slash (e.g. `path/to/public/`).
2019-11-29Remove unnecessary change from disk/map_test.goGrzegorz Bizon
2019-11-28Make project location / path / prefix less confusingGrzegorz Bizon
2019-11-24Respond with 502 if a domain can not be retrieved from a sourceGrzegorz Bizon
2019-11-23Implement a transitional domains sourceGrzegorz Bizon
2019-11-23Add note about transitional domain source interfaceGrzegorz Bizon
2019-11-23Fix comments / annotations in the disk source packageGrzegorz Bizon
2019-11-23Add abstract GitLab domains source interfaceGrzegorz Bizon
2019-10-02Only log domain name as we no longer have location infoGrzegorz Bizon
2019-10-01Remove references to `Project`Kamil Trzciński
Always uses `LookupPath`. The `project` is local to `source/disk`.
2019-10-01Refactor the code to use `Serving/LookupPath`Kamil Trzciński
This moves the code from the concept of `Project` to use a concept of `LookupPath`. This makes the `LookupPath` to define a `Path` on disk that the data is being served from. This makes the `ACME` to not have special handling, but rather try to serve the file if succeeds, skip GitLab passthrough for ACME.
2019-09-27Fix test case names in config_test.goGrzegorz Bizon
2019-09-27Remove the concept of a custom domain from domain packageGrzegorz Bizon
2019-09-27Unify how we handle custom and group domain in servingGrzegorz Bizon
2019-09-26Initialize domain serving in a Domain typeGrzegorz Bizon
2019-09-25Do not export disk source internal config typesGrzegorz Bizon
2019-09-25Rename groups package to disk packageGrzegorz Bizon