Commit Graph

  • 7178885bfb Add a dedicated error type to report missing blob or manifest. Catherine 2025-09-20 04:24:36 +00:00
  • 412c2c2e3a Fix issues found by staticcheck. NFC Catherine 2025-09-20 03:55:58 +00:00
  • 9f0e54546a CI: fix trigger list. Catherine 2025-09-20 01:18:25 +00:00
  • ed0f8e9d0d Add instructions for first-party container to README. Catherine 2025-09-20 01:12:52 +00:00
  • fa17b9c1ed Build Docker images on CI. Catherine 2025-09-20 00:11:36 +00:00
  • 9d18700834 Switch from Nix back to Docker for deployment. Catherine 2025-09-20 00:11:21 +00:00
  • da604215c1 Adapt Caddyfile during the build. Catherine 2025-09-19 21:58:38 +00:00
  • 859c4bef77 Make Fly.io health checks more aggressive. Catherine 2025-09-19 21:08:35 +00:00
  • 3d23d58fbb Make supervisord and Caddy less chatty. Catherine 2025-09-19 20:50:20 +00:00
  • 5f7e5a1271 Don't ask backend for bare IP address sites. Catherine 2025-09-19 20:27:58 +00:00
  • cbbd2bcd7e Expose Fly.io region in Server header. Catherine 2025-09-19 19:01:41 +00:00
  • 93ffee538c Precompute total site size in manifest. Catherine 2025-09-19 18:38:47 +00:00
  • e0e5a8978e Describe authorization flow for metadata retrieval. Catherine 2025-09-19 18:38:14 +00:00
  • f6982e6222 Fix inaccurate description of branch selection. Catherine 2025-09-19 18:29:45 +00:00
  • c13a82e2ed Update Nix flake. Catherine 2025-09-19 17:54:53 +00:00
  • e92b48b99f Expose site manifest to authorized clients. Catherine 2025-09-19 16:58:00 +00:00
  • dbfdd5d418 Refactor Protobuf schema. Catherine 2025-09-19 15:19:42 +00:00
  • d89f03e665 Upgrade protobuf schema to edition 2023. NFCI Catherine 2025-09-19 14:10:54 +00:00
  • 46d54503ee Fix DNS allowlist not applying to POST requests. Catherine 2025-09-19 14:10:26 +00:00
  • df6ca018a5 Unpublish site when pushing an empty repository. Catherine 2025-09-19 05:09:29 +00:00
  • da212dcb89 Aggressively optimise size of Nix built Docker images bin 2025-09-19 04:23:32 +00:00
  • 5f3edfedf9 Add DELETE method support. Catherine 2025-09-19 03:54:22 +00:00
  • 9810a346f0 Refactor authorization code. NFC Catherine 2025-09-19 03:25:16 +00:00
  • 54c9a0a77e Allow building containers using Nix. bin 2025-09-19 01:26:13 +00:00
  • 5024802fd4 Start listening before lengthy initialization. Catherine 2025-09-19 01:09:19 +00:00
  • 82bfe278bf [security] Restrict X-Pages-Branch to shared secret authorization only. Catherine 2025-09-19 00:57:54 +00:00
  • 512d5e928a Clearly indicate insecure mode at startup. Catherine 2025-09-19 00:29:03 +00:00
  • 6a67785e02 Correct inaccuracy in README. whitequark 2025-09-19 02:35:56 +02:00
  • 8c964b1afd Ignore config.toml*. Catherine 2025-09-19 00:01:26 +00:00
  • af5deb60c6 [breaking-change] Accept multiple index repository patterns. Catherine 2025-09-18 23:47:21 +00:00
  • c95a2f7f43 Mention grebedoc.dev in README. whitequark 2025-09-19 00:58:46 +02:00
  • 345602e08f Update README. Catherine 2025-09-18 22:45:49 +00:00
  • 3393c077b5 Add DNS allowlist authorization. Catherine 2025-09-18 21:48:52 +00:00
  • 929aedfd2c Use strings.Trim{Prefix,Suffix}. NFC Catherine 2025-09-18 20:05:59 +00:00
  • 877d375af7 Fold domain names to lowercase when constructing a web root. Catherine 2025-09-18 19:39:16 +00:00
  • 3c46169ba6 Refactor authentication code. Catherine 2025-09-18 19:23:59 +00:00
  • 6f932df886 Initial Nix flake bin 2025-09-18 19:14:14 +00:00
  • f99298d38b Make Caddy startup dependent on git-pages. Catherine 2025-09-18 17:28:22 +00:00
  • 2548effeb8 Unify Caddy and git-pages health checks. Catherine 2025-09-18 13:50:48 +00:00
  • 810dc9cea0 Disable swap on fly.io. Catherine 2025-09-18 13:23:35 +00:00
  • d48c754b9e Switch from hivemind to supervisord. Catherine 2025-09-18 12:15:22 +00:00
  • b85b762ba9 [breaking-change] Update Dockerfile to add Caddy and a fly.io deployment option. Catherine 2025-09-18 05:14:04 +00:00
  • 0ed4fd2fc2 Fetch repositories to /tmp, not in-memory. Catherine 2025-09-18 04:00:42 +00:00
  • 07a736382c Automatically set GOMEMLIMIT at 90% of available memory. Catherine 2025-09-18 03:31:49 +00:00
  • fb9f4a7c4a Allow configuring log format. Catherine 2025-09-18 02:00:48 +00:00
  • bd6e377e43 Allow explicit authorization to bypass wildcard URL restriction. Catherine 2025-09-18 01:56:06 +00:00
  • bbd7964e0c Revert "Expose metadata when running on bunny.net magic containers." Catherine 2025-09-18 01:42:17 +00:00
  • 2ca9a4c244 Revert "Log successful health check." Catherine 2025-09-18 01:40:51 +00:00
  • c9b2cbb52e Work around a TOCTTOU race in os.Root.MkdirAll(). Catherine 2025-09-17 23:14:52 +00:00
  • 82f24d5508 Log successful health check. Catherine 2025-09-17 18:31:38 +00:00
  • f482be4c05 Invalidate S3 backend cache after committing or deleting a manifest. Catherine 2025-09-17 17:01:50 +00:00
  • 6abaa04688 [breaking-change] S3_ENDPOINT_URLS3_ENDPOINT. Catherine 2025-09-17 16:25:31 +00:00
  • 73f00459c7 Simplify X-Bunnynet-MC format. Catherine 2025-09-17 15:38:32 +00:00
  • ea2c2c5d2e [breaking-change] Add a health check endpoint. Catherine 2025-09-17 15:36:27 +00:00
  • 13c72015a7 Raise default S3 backend max-age for manifests to 60s. Catherine 2025-09-17 15:16:00 +00:00
  • 705685e918 Expose metadata when running on bunny.net magic containers. Catherine 2025-09-17 14:55:46 +00:00
  • ef7aea6a38 Fix S3 backend cache expiry calculation. Catherine 2025-09-17 14:19:10 +00:00
  • 48cc4cbcbb Cache misses as well as hits in S3 GetManifest. Catherine 2025-09-17 14:18:07 +00:00
  • a0bd7d8650 Implement migration from v1 data layout. Catherine 2025-09-17 13:13:58 +00:00
  • 31131a6360 Use a context to ensure a time-based deadline for update operations. miyuko 2025-09-17 13:00:45 +01:00
  • cf8abbca28 Wrap errors when calling fmt.Errorf. miyuko 2025-09-17 13:00:45 +01:00
  • 92622b19a4 Fix file not closed after serving a page. miyuko 2025-09-17 13:00:45 +01:00
  • 3b80cb4144 Fix domain presence check. Catherine 2025-09-17 12:11:24 +00:00
  • 8d9c64410e Update Dockerfile. Catherine 2025-09-17 10:31:31 +00:00
  • 9e7ea8b5f1 Fix ETag header format. Catherine 2025-09-17 10:31:20 +00:00
  • 6463c4d2c5 Override backend configuration from environment. Catherine 2025-09-17 10:17:45 +00:00
  • b3f8b941d8 [breaking-change] Split blob paths for S3 backend as well. Catherine 2025-09-17 10:03:39 +00:00
  • 373d48ed22 Cache blobs in memory when using the S3 backend. Catherine 2025-09-17 07:38:53 +00:00
  • 1faf0a4431 Cache manifests in memory when using the S3 backend. Catherine 2025-09-17 06:53:39 +00:00
  • 876b4596ba Reduce amount of manifest queries sent to the backend. Catherine 2025-09-17 06:20:42 +00:00
  • 6254176a17 Add logging to S3 backend. Catherine 2025-09-17 06:20:22 +00:00
  • 7fc81d3d97 [breaking-change] Rearchitect for better object store compatibility. Catherine 2025-09-17 03:33:53 +00:00
  • e0f6dabd9f Set Access-Control-Allow-Origin for HTTP error responses as well. Catherine 2025-09-16 17:12:45 +00:00
  • b7e16b5e5f Redirect from /foo to /foo/ when serving index.html under it. Catherine 2025-09-16 16:51:11 +00:00
  • 8b8431201b Allow Authorization: Basic as a fallback for GitHub, etc. Catherine 2025-09-16 15:57:02 +00:00
  • e86e895913 Add cross-origin isolation headers to GET responses. Catherine 2025-09-16 15:19:10 +00:00
  • 3d199b660c Add Access-Control-Allow-Origin: * header to GET responses. Catherine 2025-09-16 15:04:34 +00:00
  • 02c69f8988 Add Cache-Control and ETag headers to GET responses. Catherine 2025-09-16 14:40:34 +00:00
  • cc42c43de2 Add Server: git-pages header to all responses. Catherine 2025-09-16 14:12:47 +00:00
  • bffa79dfba Add a Dockerfile Markus Unterwaditzer 2025-09-15 20:26:07 +02:00
  • 9c0cdaa2eb Report ignored refs in webhook response. Catherine 2025-09-16 13:05:40 +00:00
  • 20b7689d16 Report fetch outcome in webhook response. Catherine 2025-09-15 16:41:52 +00:00
  • 03d6c55855 Allow supplying Authorization: via query parameter. Catherine 2025-09-15 16:25:33 +00:00
  • 194302f4cf Accept GitHub, Gitea, and Gogs webhook payloads. Catherine 2025-09-15 16:18:16 +00:00
  • 87be9973b4 Compare repository URLs with casefolding. Catherine 2025-09-15 14:56:01 +00:00
  • 9d02387f5d Fix 404 being reported as 500. Catherine 2025-09-15 12:04:54 +00:00
  • 44d72eea9a Log a clearer message if requested path is not found. Catherine 2025-09-15 11:46:22 +00:00
  • 9588e6743c Respond to HEAD requests. Catherine 2025-09-15 11:28:33 +00:00
  • 9346beb01b Update README. Catherine 2025-09-15 09:55:18 +00:00
  • aa2ce12970 Add support for Caddy on-demand TLS. Catherine 2025-09-15 07:39:02 +00:00
  • abaf6d993b Add support for a wildcard domain. Catherine 2025-09-15 07:16:42 +00:00
  • 11145f407e Add a configuration file. Catherine 2025-09-15 05:20:02 +00:00
  • b9a26e528f Put sources under src/. Catherine 2025-09-15 04:51:51 +00:00
  • 2f59de02e3 Add authorization. Catherine 2025-09-15 04:13:07 +00:00
  • a3eca4f639 Add Forgejo webhook compatible POST endpoint. Catherine 2025-09-14 19:53:58 +00:00
  • 61b226c1f2 Reorganize, add README and LICENSE. Catherine 2025-09-05 08:03:23 +00:00
  • d074d212b4 Initial commit. pages Catherine 2025-09-05 08:05:10 +00:00
  • 81d795923f Add fetching via PUT request. Catherine 2025-09-05 06:33:29 +00:00
  • 364f4392c3 Add web server. Catherine 2025-09-05 04:41:07 +00:00
  • 53b6727af4 Initial commit. Catherine 2025-09-05 01:26:37 +00:00