Age | Commit message (Collapse) | Author |
|
|
|
|
|
Changelog: removed
|
|
|
|
|
|
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
|
|
Fix imports and enable test
|
|
Define ErrDomainDoesNotExist in the domain package so it can be returned
by the Resolver and handled appropriatley.
|
|
Refactor domain package to handle errors from resolver.
|
|
Log serving type
Closes #477
See merge request gitlab-org/gitlab-pages!369
|
|
This extends our structured logging
with information about how the given
request was served
|
|
Avoid strange EOF error when the encoding is wrong
|
|
|
|
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
|
|
Make `local` to be a special style of disk
serving, using the `local.VFS`
|
|
The `Instance()` is a correct name for this,
as we do not allocate a `Disk` each time,
rather return a singleton object.
|
|
|
|
Set Content-Length when Content-Encoding is set
Closes #315
See merge request gitlab-org/gitlab-pages!227
|
|
Simplify responsibilities of auth package and reduce
complexity of app.go deciding which content to serve.
|
|
Add acceptance test and some more domains for testing
Move namespace domain serving logic
Restore go.sum
Remove redundant return
Fix linter
|
|
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
|
|
* 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
|
|
|
|
Refactor metrics initialization removing init function
from the metrics package.
|
|
Go benchmarks must loop over b.N
|
|
|
|
|
|
Revert "Merge branch 'master' into 'master'"
This reverts commit 1e9f978d74ae0e1d536f1984635021b368802ccb, reversing
changes made to 86d619069f226d40d3d0ba97a243db384f133d5f.
|
|
After running `go test` ran `go mod tidy` to cleanup Go module files.
Resolves #316
|
|
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/`).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Always uses `LookupPath`.
The `project` is local to `source/disk`.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|