Commit Graph

19 Commits

Author SHA1 Message Date
Catherine
6db850e2c4 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.
2025-11-20 02:09:49 +00:00
bin
adfbb99172 Add Caddy to the Nix devshell.
Also remove flyctl, as we no longer rely on fly.io infrastructure.
2025-11-15 12:20:55 -05:00
Catherine
26b29ec4be Add Netlify _headers support. 2025-11-11 15:36:14 +00:00
Catherine
2a6308eb05 Update flake. 2025-11-11 06:12:40 +00:00
Catherine
d0e0f98616 Fix flake, and (actually) disable Renovate auto-merge. 2025-10-27 15:13:50 +00:00
Catherine
fc1582972c Fix flake. 2025-10-23 15:12:29 +00:00
Catherine
d1be93919f Make installable with go install. 2025-10-22 05:24:55 +00:00
miyuko
6fe029238a Update flake.nix. 2025-10-16 00:50:12 +01:00
bin
161696427b Cleanup Nix flake. 2025-09-29 21:26:46 -04:00
Catherine
73df468bbb Update Nix flake. 2025-09-30 01:02:43 +00:00
Catherine
7941708aad Update Nix flake. 2025-09-25 23:47:23 +00:00
Catherine
51606aac98 Replace hardcoded limits with a config file section. 2025-09-21 19:00:36 +00:00
Catherine
2af2975713 Add tar+gzip and tar+zstd compressed archive support. 2025-09-21 06:25:10 +00:00
Catherine
960a40d736 Add Honeybadger.io observability support.
It's not yet clear how useful it is, but it's at least something.
2025-09-20 14:19:55 +00:00
Catherine
95814dd3f3 Parse _redirects file and store rules in manifest. 2025-09-20 07:16:10 +00:00
Catherine
c13a82e2ed Update Nix flake. 2025-09-19 17:54:53 +00:00
bin
da212dcb89 Aggressively optimise size of Nix built Docker images 2025-09-19 04:23:57 +00:00
bin
54c9a0a77e Allow building containers using Nix.
fly auth docker && \
    nix build .#image -L && \
    docker load < result && \
    docker tag git-pages:latest registry.fly.io/git-pages:latest && \
    docker push registry.fly.io/git-pages:latest
2025-09-18 22:50:23 -04:00
bin
6f932df886 Initial Nix flake 2025-09-18 19:14:47 +00:00