Commit Graph

  • eda6d8b6f6 Update the go-slog-syslog dependency. miyuko 2025-11-22 14:43:27 +00:00
  • fcc109c315 Add the ability to send logs to a syslog daemon. miyuko 2025-11-20 07:58:49 +00:00
  • 4d8f6d5e9d fix(deps): update module github.com/go-git/go-git/v6 to v6.0.0-20251121083746-39fcec474970 woodpecker-bot 2025-11-22 00:13:20 +00:00
  • cb7802df10 Pass the context to logging functions. miyuko 2025-11-22 00:27:25 +00:00
  • b01e67f993 Exit gracefully (run deferred statements in main()) on SIGINT. miyuko 2025-11-21 15:09:36 +00:00
  • b5a1626a10 Fix content-type detection for small files David Leadbeater 2025-11-21 15:45:14 +11:00
  • b1b8ae26e8 Restrict DNS Allowlist authorization to index site only. Catherine 2025-11-21 03:42:39 +00:00
  • eac02e5758 fix(deps): update all dependencies woodpecker-bot 2025-11-21 00:19:06 +00:00
  • 7e1185309b Fix a regression causing non-observance of ≠200 S3 manifest responses. Catherine 2025-11-20 07:06:14 +00:00
  • 351d0a0c85 Add a log level config option David Leadbeater 2025-11-20 17:29:09 +11:00
  • 982c3321e0 Reword some log messages. NFC v0.1.0 Catherine 2025-11-20 04:11:57 +00:00
  • eaf77565bc Improve configuration reload and clarify scope. Catherine 2025-11-20 04:04:57 +00:00
  • c93d3a0bb5 Reload configuration on SIGHUP (if supported by OS). Catherine 2025-11-20 03:43:20 +00:00
  • a924dd5116 Improve CLI usage text. Catherine 2025-11-20 03:15:03 +00:00
  • f148792bcd Accept an output argument in -get-blob, -get-manifest, -get-archive. Catherine 2025-11-20 03:03:03 +00:00
  • 99904174e4 Bring documentation up to date. Catherine 2025-11-20 02:36:20 +00:00
  • 6db850e2c4 Allow downloading entire site via CLI or HTTP. Catherine 2025-11-20 00:37:16 +00:00
  • aa6e495505 Fix DIV/0 when compressing a site without contents. Catherine 2025-11-20 01:17:01 +00:00
  • 0e342b11f6 Add Last-Modified: header to /.git-pages/ metadata responses. Catherine 2025-11-19 22:37:06 +00:00
  • dd16818618 Refactor S3Backend.GetManifest. NFCI Catherine 2025-11-19 22:26:38 +00:00
  • 0b2db170b8 Allow updating wildcard domain sites from an archive with a forge token. Catherine 2025-11-19 03:43:57 +00:00
  • 457dd60aa0 Factor out authentication helpers. NFC Catherine 2025-11-19 02:50:58 +00:00
  • 95894bb403 Docker: clean Go cache after building executables. Catherine 2025-11-19 01:50:52 +00:00
  • 6196026312 CI: publish releases and handle tags. Catherine 2025-11-19 01:19:45 +00:00
  • 073435aa2b Redirect domain.tld/project to domain.tld/project/ when present. Catherine 2025-11-18 22:25:26 +00:00
  • 325c283e05 Refactor redirect code. NFC Catherine 2025-11-18 22:21:51 +00:00
  • 7773ebd0dc CI: switch package runner to medium. Catherine 2025-11-18 21:30:18 +00:00
  • cef3d785ec Add a Prometheus counter for s3:GetObject errors. miyuko 2025-11-16 00:30:48 +00:00
  • fff345c695 Don't observe context cancellation errors. miyuko 2025-11-17 11:08:35 +00:00
  • de17426f41 Observe blob fetch errors during GET requests. miyuko 2025-11-17 11:08:10 +00:00
  • 3334af922f Allow external redirects for 3xx statuses David Leadbeater 2025-11-17 19:24:54 +11:00
  • 5a09d30d3d Renovate: disable automerge so it'd stop breaking the flake. Catherine 2025-11-17 04:34:26 +00:00
  • d88d97721a Observe whether manifest cache is bypassed. Catherine 2025-11-17 04:34:17 +00:00
  • 91dc7e0c54 Add original (decompressed) size to site manifest. Catherine 2025-11-16 19:27:02 +00:00
  • 770ff5c416 Remove unused go.mod entries. Catherine 2025-11-16 19:22:20 +00:00
  • 779f705d5c Allow matching multiple subdomains in wildcards oppiliappan 2025-11-16 05:56:12 +00:00
  • 5da56a1b94 Link to git-pages-cli in README. Catherine 2025-11-16 02:06:19 +00:00
  • 2193fb86de Try to fix Sentry errors getting attached to wrong transactions. miyuko 2025-11-16 00:30:09 +00:00
  • de40c8263a Set Update-Result for DELETE requests. Catherine 2025-11-16 00:18:27 +00:00
  • 3e59fd2734 Rename X-Pages-Update header to Update-Result. Catherine 2025-11-15 23:46:19 +00:00
  • 9a431b8bbb Add /.git-pages/health endpoint. Catherine 2025-11-15 21:17:30 +00:00
  • adfbb99172 Add Caddy to the Nix devshell. bin 2025-11-15 12:20:55 -05:00
  • d604455e1f Ignore trailing . in hostnames. Catherine 2025-11-15 03:12:02 +00:00
  • 3431217a09 Don't respond with a completely blank 404 page. Catherine 2025-11-15 01:42:22 +00:00
  • b70a9ad4dd Allow only ssh, http, and https schemes for clone URLs. Catherine 2025-11-14 23:12:53 +00:00
  • 19892ecfd1 Correctly read symlinks from zip files David Leadbeater 2025-11-14 12:50:01 +11:00
  • ff8cf9928e Make compression always enabled. Catherine 2025-11-13 23:22:23 +00:00
  • 9d0a3ac6ad Use Branch: instead of X-Pages-Branch: to set custom branch name. Catherine 2025-11-12 17:05:11 +00:00
  • ed77339144 Remove deprecated COOP/COEP assignment based on content type. Catherine 2025-11-11 17:55:45 +00:00
  • cf5b98e3e5 Don't issue extraneous HEAD requests for S3 GetObject operations. miyuko 2025-11-11 17:16:46 +00:00
  • 02b5b7d2bb Ignore only the malformed _redirects/_headers rules. Catherine 2025-11-11 15:55:47 +00:00
  • c90b453d44 Default to allowed-custom-headers = ["X-Clacks-Overhead"]. Catherine 2025-11-11 15:38:08 +00:00
  • 26b29ec4be Add Netlify _headers support. Catherine 2025-11-11 15:13:46 +00:00
  • 2a6308eb05 Update flake. Catherine 2025-11-11 06:12:40 +00:00
  • f9e142dd51 Observe all storage errors reported by GetManifest. Catherine 2025-11-11 05:59:08 +00:00
  • c4b3671a53 Add [[wildcard]].index-repo-branch option (pages by default). Catherine 2025-11-05 23:00:29 +00:00
  • 9b19eeae82 Add missing [limits] keys to default configuration. Catherine 2025-11-05 22:40:48 +00:00
  • 47a658ac03 Avoid leaking http.Transport resources. Catherine 2025-11-05 09:48:35 +00:00
  • 3c07ebccbf Add [[wildcard]].fallback-insecure option to disable TLS verification. Catherine 2025-11-04 19:03:35 +00:00
  • 28c1b42167 fix(deps): update all dependencies woodpecker-bot 2025-10-30 00:10:05 +00:00
  • ba820e63e3 Work around slog issues handling %% in a format string. Catherine 2025-10-29 01:04:01 +00:00
  • 2db3de01c7 Fix a nil dereference on non-custom 404 pages. Catherine 2025-10-27 16:14:35 +00:00
  • 91cafac86a Apply Content-Type from the manifest to non-200 status pages. Catherine 2025-10-27 15:20:36 +00:00
  • d0e0f98616 Fix flake, and (actually) disable Renovate auto-merge. Catherine 2025-10-27 15:13:50 +00:00
  • b295318118 fix(deps): update all dependencies woodpecker-bot 2025-10-27 00:11:41 +00:00
  • c93bc3a250 CI: run on all branches, but package only on main branch. Catherine 2025-10-26 05:02:00 +00:00
  • 30668be4a0 If an https fallback URL is configured, try TLS for Caddy domain check. Catherine 2025-10-26 04:53:55 +00:00
  • 26b926293b Serve X-Content-Type-Options: nosniff. Catherine 2025-10-24 09:28:47 +00:00
  • 68343a3dff Turns out a Web Worker is a type of frame (for COEP purposes). Catherine 2025-10-24 09:26:54 +00:00
  • fc1582972c Fix flake. Catherine 2025-10-23 15:12:29 +00:00
  • b6d9f3de61 Renovate: disable automerge so it'd stop breaking the flake. Catherine 2025-10-23 15:12:22 +00:00
  • d4b779eeb4 Copy root .go files to the builder image in the Dockerfile. miyuko 2025-10-23 15:08:09 +01:00
  • f1400aaf62 fix(deps): pin dependencies woodpecker-bot 2025-10-23 00:11:27 +00:00
  • 8f8521d697 Don't compress video or audio files. miyuko 2025-10-22 17:24:29 +01:00
  • ffedc45a14 Don't send COEP/COOP headers for non-HTML resources. miyuko 2025-10-22 17:18:14 +01:00
  • d6a7a72e09 Serve compressed content directly if client indicates support. miyuko 2025-10-22 16:17:13 +01:00
  • aa965c5a08 Use s3:GetObject instead of s3:ListObjects for CheckDomain. miyuko 2025-10-15 19:12:19 +01:00
  • 34db13e603 Simplify observability code. NFC Catherine 2025-10-22 10:44:25 +00:00
  • d144ea197e Update README. Simon Kolkmann 2025-10-22 11:50:33 +02:00
  • d1be93919f Make installable with go install. Catherine 2025-10-22 05:16:49 +00:00
  • 9f435d6e28 Disable actions/buildah-simple from renovate Gusted 2025-10-22 01:37:45 +02:00
  • c39e57a857 Fetch manifests in parallel when handling GET requests. miyuko 2025-10-17 17:12:24 +01:00
  • 3863f0f134 Revert "Add a GetManifests function." miyuko 2025-10-22 00:14:37 +01:00
  • 9849bcd498 Renovate: disable abandonmentThreshold. Catherine 2025-10-21 23:13:34 +00:00
  • 0d7a9aa9eb chore(deps): add renovate.json woodpecker-bot 2025-10-21 22:52:59 +00:00
  • 5e09a2b2bb Add a metric for site space saving due to compression. Catherine 2025-10-21 03:54:20 +00:00
  • 25f7ea08c9 Sniff Content-Type during site update. Catherine 2025-10-21 03:40:29 +00:00
  • 0a111234f2 Add a GetManifests function. Catherine 2025-10-21 01:40:20 +00:00
  • 83c1e564c4 Add stored_size (size after deduplication) to manifest. Catherine 2025-10-21 00:49:27 +00:00
  • 23b516cf15 Observe timings even for 304 Not Modified responses to manifest loads. Catherine 2025-10-21 00:29:42 +00:00
  • 99b87226a1 Move update error observation to a single place. NFC Catherine 2025-10-17 10:56:29 +00:00
  • fcc6245ce8 Respond to webhook deliveries in under 3 seconds. miyuko 2025-10-17 22:08:25 +01:00
  • 2ac2aee14a Use ETags when refreshing cached manifests. miyuko 2025-10-17 21:13:45 +01:00
  • d54976e756 Report update errors or timeouts. Catherine 2025-10-17 10:33:40 +00:00
  • ff6fff2133 Add git_pages_http_request_count metric. Catherine 2025-10-17 02:09:28 +00:00
  • e709634906 Add classic buckets to git_pages_s3_get_object_duration_seconds. miyuko 2025-10-17 03:07:02 +01:00
  • 93b7ad3af8 Add classic buckets to git_pages_http_request_duration_seconds. miyuko 2025-10-17 02:33:52 +01:00
  • cfeb2d0dbe Observe s3:GetObject latency. miyuko 2025-10-16 03:14:02 +01:00
  • 6fe029238a Update flake.nix. miyuko 2025-10-16 00:50:12 +01:00
  • 32109d0db8 Monitor how long it takes us to respond to HTTP requests. miyuko 2025-10-16 00:31:18 +01:00