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-09-15Add support for redirects24-add-redirectsEric Eastwood
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
2020-09-09Fix handling of absolute paths for `vfs/local`fix-symlink-specsKamil Trzcinski
This resolves absolute paths to be relative if within a `rootPath` or absolute if outside. The `EvalSymlink` and the later usage of `VFS` will ensure that path is sanitised
2020-09-08Fix `symlink` specs on OSXKamil Trzcinski
The fix is a little unconventional: - we treat the absolute paths as local to `rootPath` - this actually makes sense, given that this VFS should only work in this context
2020-09-03Abstract `VFS` `Root`Kamil Trzciński
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-13Add VFS for local diskJacob Vosmaer
2020-08-11Vendor Go 1.14 filepath.EvalSymlinks codeJacob Vosmaer
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-06-09Use histogram without labelsJaime Martinez
Register ServingTime. Rename DiskServingFileSize so that it's a histogram without needing labels
2020-06-05Use histograms instead of gaguesJaime Martinez
Removed test assertion for metric as histograms are not collectors so we can't really test it. Left the test though as it's still valuable.
2020-06-04Add serving time metric for all filesJaime Martinez
2020-06-03Add file size metric for disk servingJaime Martinez
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-28Avoid implicit delegation in disk servingGrzegorz Bizon
2020-02-27Improve comments and code readabilityGrzegorz Bizon
2020-02-24Improve code quality and add a few missing commentsGrzegorz Bizon
2020-02-18Simplify serverless serving and add a few testsGrzegorz Bizon
2020-02-18Ensure that we not do return nil serving.RequestGrzegorz Bizon
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-12Make it possible to fabricate a serverless servingGrzegorz Bizon
2020-02-11Memoize disk serving on a package levelGrzegorz Bizon
2020-02-11Make it possible to fabricate serving per requestGrzegorz Bizon
2020-02-05Add support for per-lookup-path domain servingGrzegorz Bizon
2020-02-03Add serverless serving metricsGrzegorz Bizon
This adds: - serverless invocations counter - serverless request latency histogram
2020-01-30Bump serverless proxy request timeout to 4 minutesGrzegorz Bizon
2020-01-29Use testift/require instead of testify/assert in serverless servingGrzegorz Bizon
2020-01-29Add unit tests for serverless serving functionGrzegorz Bizon
2020-01-29Add test cases to serverless serving covering typical responsesGrzegorz Bizon
2020-01-29Provide a real function location when proxing serverless requestsGrzegorz Bizon
2020-01-29Rename serverless cluster config to certs configGrzegorz Bizon
2020-01-28Refactor error handling in serverless servingGrzegorz Bizon
2020-01-28Add basic error handling to serverless reverse proxyGrzegorz Bizon
2020-01-28Add X-Forwarded headers to serverless proxyGrzegorz Bizon
2020-01-28Add initial implementation of serverless proxyGrzegorz Bizon
2020-01-28Add scaffold of serverless proxy director and transportGrzegorz Bizon
2020-01-28Add scaffold of a new serverless servingGrzegorz Bizon
2020-01-25Set Content-Length when Content-Encoding is gzipMark Francis
2020-01-07Fix TyposYoginth
2019-12-19Ensure that publicPath always ends with "/"Krasimir Angelov
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-29Link a few bug and technical debt issues in codeGrzegorz Bizon
2019-11-28Make project location / path / prefix less confusingGrzegorz Bizon
2019-11-27Add acceptance tests for new domains sourceGrzegorz Bizon
2019-11-26Implement raw gitlab source and prepare interfaces for testingGrzegorz Bizon
2019-10-01Fix golint warnings in hadnler / lookup pathGrzegorz 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 imports orderding in disk helpers.go fileGrzegorz Bizon