Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-09-15 | Add support for redirects24-add-redirects | Eric Eastwood | |
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24 | |||
2020-09-09 | Fix handling of absolute paths for `vfs/local`fix-symlink-specs | Kamil 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-08 | Fix `symlink` specs on OSX | Kamil 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-03 | Abstract `VFS` `Root` | Kamil Trzciński | |
2020-09-02 | Rename `disk.Instance()` to `local.Instance()`move-disk-to-local | Kamil Trzciński | |
Make `local` to be a special style of disk serving, using the `local.VFS` | |||
2020-08-20 | Rename `serving/disk/New()` to `serving/disk/Instance()`rename-disk-new-to-instance | Kamil 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-13 | Add VFS for local disk | Jacob Vosmaer | |
2020-08-11 | Vendor Go 1.14 filepath.EvalSymlinks code | Jacob Vosmaer | |
2020-08-05 | Fix tests that use illegal ../ paths | Jacob Vosmaer | |
2020-08-04 | Merge 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-09 | Use histogram without labels | Jaime Martinez | |
Register ServingTime. Rename DiskServingFileSize so that it's a histogram without needing labels | |||
2020-06-05 | Use histograms instead of gagues | Jaime 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-04 | Add serving time metric for all files | Jaime Martinez | |
2020-06-03 | Add file size metric for disk serving | Jaime Martinez | |
2020-05-28 | Add .golangci.yml linter configuration | Jaime 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-28 | Avoid implicit delegation in disk serving | Grzegorz Bizon | |
2020-02-27 | Improve comments and code readability | Grzegorz Bizon | |
2020-02-24 | Improve code quality and add a few missing comments | Grzegorz Bizon | |
2020-02-18 | Simplify serverless serving and add a few tests | Grzegorz Bizon | |
2020-02-18 | Ensure that we not do return nil serving.Request | Grzegorz Bizon | |
2020-02-12 | Merge branch 'master' into feature/gb/serverless-serving-enable | Grzegorz 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-12 | Make it possible to fabricate a serverless serving | Grzegorz Bizon | |
2020-02-11 | Memoize disk serving on a package level | Grzegorz Bizon | |
2020-02-11 | Make it possible to fabricate serving per request | Grzegorz Bizon | |
2020-02-05 | Add support for per-lookup-path domain serving | Grzegorz Bizon | |
2020-02-03 | Add serverless serving metrics | Grzegorz Bizon | |
This adds: - serverless invocations counter - serverless request latency histogram | |||
2020-01-30 | Bump serverless proxy request timeout to 4 minutes | Grzegorz Bizon | |
2020-01-29 | Use testift/require instead of testify/assert in serverless serving | Grzegorz Bizon | |
2020-01-29 | Add unit tests for serverless serving function | Grzegorz Bizon | |
2020-01-29 | Add test cases to serverless serving covering typical responses | Grzegorz Bizon | |
2020-01-29 | Provide a real function location when proxing serverless requests | Grzegorz Bizon | |
2020-01-29 | Rename serverless cluster config to certs config | Grzegorz Bizon | |
2020-01-28 | Refactor error handling in serverless serving | Grzegorz Bizon | |
2020-01-28 | Add basic error handling to serverless reverse proxy | Grzegorz Bizon | |
2020-01-28 | Add X-Forwarded headers to serverless proxy | Grzegorz Bizon | |
2020-01-28 | Add initial implementation of serverless proxy | Grzegorz Bizon | |
2020-01-28 | Add scaffold of serverless proxy director and transport | Grzegorz Bizon | |
2020-01-28 | Add scaffold of a new serverless serving | Grzegorz Bizon | |
2020-01-25 | Set Content-Length when Content-Encoding is gzip | Mark Francis | |
2020-01-07 | Fix Typos | Yoginth | |
2019-12-19 | Ensure that publicPath always ends with "/" | Krasimir Angelov | |
2019-12-12 | Fix different issues with slashes | Krasimir 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-29 | Link a few bug and technical debt issues in code | Grzegorz Bizon | |
2019-11-28 | Make project location / path / prefix less confusing | Grzegorz Bizon | |
2019-11-27 | Add acceptance tests for new domains source | Grzegorz Bizon | |
2019-11-26 | Implement raw gitlab source and prepare interfaces for testing | Grzegorz Bizon | |
2019-10-01 | Fix golint warnings in hadnler / lookup path | Grzegorz Bizon | |
2019-10-01 | Remove references to `Project` | Kamil Trzciński | |
Always uses `LookupPath`. The `project` is local to `source/disk`. | |||
2019-10-01 | Refactor 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-27 | Fix imports orderding in disk helpers.go file | Grzegorz Bizon | |