mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-09-19 23:24:15 +00:00
Allow downloading entire site via CLI or HTTP.
The HTTP endpoint is `/.git-pages/archive.tar` and it is gated behind a feature flag `archive-site`. It serially downloads every blob and writes it to the client in a chunked response, optionally compressed with gzip or zstd as per `Accept-Encoding:`. It is authorized the same as `/.git-pages/manifest.json`, for the same reasons. The CLI operation is `-get-archive <site-name>` and it writes a tar archive to stdout. This could be useful for an administrator to review the contents of a site in response to a report. Both `_headers` and `_redirects` files are present in the output, reconstituted from the manifest.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
codeberg.org/git-pages/go-headers v1.0.0 h1:hvGU97hQdXaT5HwCpZJWQdg7akvtOBCSUNL4u2a5uTs=
|
||||
codeberg.org/git-pages/go-headers v1.0.0/go.mod h1:N4gwH0U3YPwmuyxqH7xBA8j44fTPX+vOEP7ejJVBPts=
|
||||
codeberg.org/git-pages/go-headers v1.1.0 h1:rk7/SOSsn+XuL7PUQZFYUaWKHEaj6K8mXmUV9rF2VxE=
|
||||
codeberg.org/git-pages/go-headers v1.1.0/go.mod h1:N4gwH0U3YPwmuyxqH7xBA8j44fTPX+vOEP7ejJVBPts=
|
||||
github.com/KimMachineGun/automemlimit v0.7.5 h1:RkbaC0MwhjL1ZuBKunGDjE/ggwAX43DwZrJqVwyveTk=
|
||||
github.com/KimMachineGun/automemlimit v0.7.5/go.mod h1:QZxpHaGOQoYvFhv/r4u3U0JTC2ZcOwbSr11UZF46UBM=
|
||||
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
|
||||
|
||||
Reference in New Issue
Block a user