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
2022-07-01Enable FF_ENABLE_PLACEHOLDERS by default619-enable-placeholders-by-defaultJaime Martinez
Changelog: added
2022-07-01Merge branch 'refactor/artifact-try-make-request' into 'master'Jaime Martinez
refactor: remove host out of Artifact.TryMakeRequest Closes #760 See merge request gitlab-org/gitlab-pages!787
2022-06-30Merge branch 'fix/log-empty-artifact' into 'master'Jaime Martinez
fix: stop logging an empty artifact server if the address is inferred See merge request gitlab-org/gitlab-pages!794
2022-06-28Improve consistency of log fieldsfeistel
2022-06-28Merge branch 'feat/configurable-redirects' into 'master'Jaime Martinez
feat: make _redirects limits configurable See merge request gitlab-org/gitlab-pages!778
2022-06-27Simplify validation test checksNejc Habjan
2022-06-27Initialize redirects config with default valuesNejc Habjan
2022-06-27Apply maintainer review suggestionsNejc Habjan
2022-06-27Apply review suggestionVishal Tak
2022-06-27Swap int casts for MaxConfigSizeNejc Habjan
2022-06-27Set up redirects config for unit testsNejc Habjan
2022-06-27Apply review suggestionsNejc Habjan
2022-06-27Make _redirects limits configurableNejc Habjan
Changelog: added
2022-06-27Do not log an error when serving 404 in routing middlewarefeistel
2022-06-25Move custom headers parsing into config loadingfeistel
2022-06-22Serve 404 if ctx is canceled while resolving a domainfeistel
2022-06-22Fix logging an empty artifact server if the address is inferredfeistel
2022-06-22Merge branch 'fix-redirects' into 'master'Jaime Martinez
Fix domain level redirects See merge request gitlab-org/gitlab-pages!790
2022-06-21Merge branch 'jv-clear-timezone' into 'master'Vladimir Shushlin
Clear timezones from cached zip entries See merge request gitlab-org/gitlab-pages!791
2022-06-21Clear timezones from cached zip entriesJacob Vosmaer
In https://gitlab.com/gitlab-org/gitlab-pages/-/issues/702 we discovered that by caching many `*zip.File` instances, we end up storing many Go timezone objects on the heap: one per cached `*zip.File`. This adds up to about 25% of the heap size. In this commit we set the timestamp of `*zip.File` to UTC. Because Go re-uses a single timezone object for UTC, this causes the original timezone objects of the `*zip.File` instances to be garbage collected. This reduces the heap size. Here is an example program that demonstrates the effect: ```golang package main import ( "archive/zip" "log" "os" "runtime/pprof" ) func main() { if err := load(os.Args[1]); err != nil { log.Fatal(err) } log.Printf("load finished: %d archives", len(readers)) pprof.WriteHeapProfile(os.Stdout) } var readers []*zip.ReadCloser func load(filename string) error { for i := 0; i < 1000; i++ { zr, err := zip.OpenReader(filename) if err != nil { return err } if os.Getenv("FORCE_UTC") == "1" { for _, zf := range zr.File { zf.Modified = zf.Modified.UTC() } } readers = append(readers, zr) } return nil } ```
2022-06-20Fix domain level redirectsfix-redirectsVishal Tak
Do not allow domain level redirects through special characters Changelog: fixed
2022-06-17Properly handle io.copy errorsfeistel
Changelog: added
2022-06-15Remove host out of Artifact.TryMakeRequestfeistel
2022-06-05Refactor acme tests and middleware for lazy domain resolutionfeistel
2022-06-03Merge branch 'tls-metrics' into 'master'Vladimir Shushlin
Add TLS for metrics See merge request gitlab-org/gitlab-pages!772
2022-06-03Remove IsHTTPS fieldVishal Tak
2022-06-03Merge branch 'feat/infer-artifact-server' into 'master'Vladimir Shushlin
feat: infer artifacts-server from internal server unless it's set explicitly Closes #747 See merge request gitlab-org/gitlab-pages!775
2022-06-02Use normalized value to infer artifacts serverVishal Tak
2022-06-02Use IsHTTPS field to check if metrics conn typeVishal Tak
2022-06-02Use TLSConfig and remove IsHTTPS in Metrics configVishal Tak
Add unit tests and move acceptance tests
2022-06-02Add support for tls for metricsVishal Tak
Changelog: added
2022-06-02Merge branch 'perf/reduce-lookup-path' into 'master'Jaime Martinez
refactor: reduce lookup path requests See merge request gitlab-org/gitlab-pages!753
2022-06-01Add comment about https redirect in authorization middlewarefeistel
2022-06-01Add missing newlineJaime Martinez
2022-06-01Merge branch 'fix/domain-fail-metric' into 'master'Vladimir Shushlin
fix: move DomainsSourceFailures increase into the gitlab client See merge request gitlab-org/gitlab-pages!773
2022-06-01Infer artifacts-server from internal server unless it's set explicitlyfeistel
2022-05-30Merge branch 'feat/unix-sock' into 'master'Vladimir Shushlin
feat: add support for socket listeners See merge request gitlab-org/gitlab-pages!758
2022-05-26Move DomainsSourceFailures increase into the gitlab clientfeistel
Should also fix inconsistencies and make the metrics useful if compared to DomainsSourceAPIReqTotal
2022-05-22Reduce lookup path requests in the handler pipelinefeistel
2022-05-20Propagate errors for better handlingfeistel
2022-05-16Add logs for unexpected eventsVishal Tak
2022-05-16Improve the error messagesVishal Tak
2022-05-16Add resource range details for error while reading zipVishal Tak
2022-05-16Add logs for more visibility in 404s and archive corruption eventVishal Tak
2022-05-16Merge branch 'refactor/abstract-artifact-middleware' into 'master'Jaime Martinez
refactor: move artifact resolution to a separate middleware See merge request gitlab-org/gitlab-pages!765
2022-05-07Update flag documentation to mention socket listenersfeistel
2022-05-05Abstract artifact handling to a separate middlewarefeistel
2022-05-04Merge branch 'refactor/drop-neterr-temporary' into 'master'Jaime Martinez
refactor: remove net.Error.Temporary usage from domain cache See merge request gitlab-org/gitlab-pages!763
2022-05-02Add nolintlint linter configurationfeistel
Require an explanation for nolint rules and warn about unused rules
2022-05-02Remove net.Error.Temporary usage from domain cachefeistel
net.Error.Temporary is deprecated and Temporary errors are not well-defined. This method should not be used.