Commit Graph
94 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš b0b6d1663e Document the release process in RELEASE.md 2026-01-21 12:44:02 -06:00
Rūdolfs Ošiņš 5b4d5d5df9 Adapt heartwood changelog script for radicle-httpd 2026-01-21 11:38:40 -06:00
Rūdolfs Ošiņš 3d55ca4833 Make release scripts executable from anywhere in the repo 2026-01-21 11:38:00 -06:00
Rūdolfs Ošiņš a4a3f65ffe Update the release scripts to match our canonical tags 2026-01-21 11:37:37 -06:00
Rūdolfs Ošiņš 14162868f2 httpd: Release 0.23.0 2026-01-21 09:40:35 -06:00
Rūdolfs OšiņšandFintan Halpenny 7dfca539b4 httpd: Add SIGHUP config reloading
Enable hot-reloading of web configuration (pinned repos, avatar, banner,
description) by sending SIGHUP to the process, eliminating the need for
server restarts when updating these settings.

Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2026-01-20 15:55:21 -06:00
Defelo 0fae94fce4 httpd: Remove unused struct 2026-01-12 15:01:48 -06:00
Rūdolfs Ošiņš fadd614636 httpd: Release 0.22.0 2026-01-07 13:24:49 -06:00
Defelo 699835d3fb httpd: Fix git handler
Apply the `SocketAddr` -> `DualAddr` change made in commit `4d062d83` to
the git handler and update the unit tests accordingly.
2026-01-06 14:49:20 +01:00
Sebastian Martinez 30fd309e04 httpd: Improve build README 2025-12-23 15:18:52 +01:00
Sebastian Martinez ad845ba66f httpd: Update upload script 2025-12-23 14:53:31 +01:00
Sebastian Martinez 8c2f15d619 httpd: Release 0.21.0 2025-12-23 12:57:43 +01:00
Sebastian Martinez 4d062d8347 httpd: Add axum-listener and use axum for unix-sockets directly 2025-12-23 12:33:43 +01:00
Rūdolfs Ošiņš 97ad0a865e httpd: Make radicle-httpd work with unix sockets 2025-12-19 17:48:22 +01:00
Defelo 23d608d433 Guess mime type based on path
Try to determine the mime type of a file first based on its path, then
based on its content.

The previous behavior (looking only at the file content) inferred a
mime type of `text/xml` for `.svg` files (instead of `image/svg+xml`)
which prevented them from being shown when embedded e.g. in a markdown
document.
2025-09-15 12:53:33 +02:00
Sebastian Martinez d5cf0612d5 httpd: Update dependencies
Required:
- removing the #[async_trait] declarations since that has been
stabilized in rust.
- axum 0.8.0 introduced new endpoints declarations with curly brackets.
2025-08-15 14:12:35 +02:00
Sebastian Martinez 2727615b53 Bump radicle crate to 0.18.0 2025-08-15 13:22:49 +02:00
Rūdolfs Ošiņš be5605acde httpd: Release 0.20.0 2025-07-18 14:16:04 +02:00
Rūdolfs Ošiņš 4cd680d464 Bump radicle crate to 0.16.1 2025-07-18 12:13:24 +02:00
Sebastian Martinez 0603f63cdf Add components to rust-toolchain file
This seems to be helping since GitHub changed the behavior of the rustup
toolchain install from the default profile to a minimal which excludes
fmt and clippy

source: https://github.com/rust-lang/rustup/issues/4337
2025-06-26 15:52:37 +02:00
Sebastian Martinez b1bcfc7cd8 Add debian packaging of radicle-httpd 2025-06-24 15:04:20 +02:00
Sebastian Martinez 3c66de391b Add debian package builder 2025-06-24 15:04:20 +02:00
Sebastian Martinez fd88be1602 httpd: Add a radicle-httpd.json file to each build 2025-06-17 13:13:51 +02:00
Sebastian Martinez f54222326a httpd: Release 0.19.1 2025-06-06 12:36:24 +02:00
Sebastian MartinezandFintan Halpenny 915fdc3665 httpd: Dockerfile uses Rust version from rust-toolchain
Instead of hardcoding the version of the Rust alpine file, introduce an
`ARG` in
the `Dockerfile`. In `build/build`, we determine the version by
inspecting
`rust-toolchain.toml`, and pass this value in. This ensures that the
binaries
are built using the same toolchain that we develop with.

Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2025-06-06 10:07:51 +02:00
Sebastian Martinez e76f78824f httpd: update cargo-zigbuild version to 0.20 2025-06-06 10:07:51 +02:00
lorenz ccb5e49ee0 httpd/git: Fix passing configuration
The `-c` argument (and its corresponding value) must come *before* the
first subcommand to be effective. This error was introduced in commit
5f22e1bb77.
2025-06-04 20:56:56 +02:00
Sebastian Martinez d6e700cdd4 httpd: Release 0.19.0 2025-06-04 11:25:11 +02:00
Sebastian Martinez 11bf9d7200 Bump heartwood crates to latest versions 2025-06-04 10:32:50 +02:00
Sebastian Martinez 9561049789 Update used rust toolchain to 1.87 2025-06-04 09:59:59 +02:00
Sebastian Martinez 978b3de61f httpd: Infer mime type of file blob in remaining raw handlers 2025-06-04 09:59:16 +02:00
lorenz 5f22e1bb77 httpd/git: Set uploadpack.allowAnySHA1InWant 2025-06-04 09:57:50 +02:00
Sebastian Martinez fbb9dd64db Update authors and bump crate version to 0.18.2 2025-05-27 10:29:36 +02:00
lorenz af334bb0e4 archive: Various Fixes
1. When `git archive` errors, do not require an exit code, but just use
    the `ExitStatus` we already have. This requires less unwrapping.
    Also, the previous default of 0 was misleading, since 0 is returned
    upon successful termination.
 2. Use "refname" instead of "refspec" as these are different concepts.
    Refer to <https://git-scm.com/docs/git-check-ref-format> and in
    particular
    <https://git-scm.com/docs/git-check-ref-format#Documentation/git-check-ref-format.txt---refspec-pattern>.
 3. Only allow appending ".tar.gz" to commit IDs, not to refnames,
    because refnames may contain the suffix ".tar.gz". It might look
    weird, but it is not forbidden to do `git branch foo.tar.gz`.
 4. `char::is_ascii` does not help sanitize refnames to file names. In
    particular we have `'/'.is_ascii() == true`. Replace forward slashes
    with two underscores.
2025-04-23 16:29:58 +02:00
Sebastian Martinez 2fe3566848 httpd: Add archive endpoint for tarballs 2025-04-23 11:00:59 +02:00
Sebastian Martinez c132855d16 Update build Dockerfile 2025-03-19 11:12:04 -06:00
Sebastian Martinez f2c7bb71c7 Handle json! panick trying to serialize non utf8 lines
Instead of panicking when trying to handle non utf8 lines we should
return `null` as line output.

This way we can on the frontend detect if a file has any lines the api
wasn't able to parse and fallback to show a file as a `Binary File`
2025-03-19 11:12:04 -06:00
Sebastian Martinez 0d7a96e3b0 httpd: Bump version numbers 2025-02-04 11:32:28 -06:00
Sebastian Martinez ef46915d77 httpd: Infer mime type of file blob in file_by_oid handler
Instead of relying on the mime_type query string the endpoint should try
to infer the file type.
2025-02-04 11:32:28 -06:00
Sebastian Martinez 061aaa18a1 httpd: Increase MAX_BLOB_SIZE to 10 MB 2025-02-04 11:32:28 -06:00
Sebastian Martinez 2e8b817d53 httpd: Copy RADICLE_VERSION to /
Also deprecates it on `api/v1/`
2024-12-05 14:21:07 +01:00
Sebastian Martinez 2fef0f5c9c httpd: Move CorsLayer to / 2024-12-05 14:13:56 +01:00
Sebastian Martinez f456731f42 Fix radicle-httpd tests for radicle 1.1.0 2024-12-05 14:13:56 +01:00
Sebastian Martinez be0ecd7347 Bump httpd version numbers to 0.18.0 2024-12-05 14:13:56 +01:00
Sebastian Martinez cb7e01105b Update radicle-httpd to latest radicle crate 2024-12-05 09:21:19 +01:00
Rūdolfs Ošiņš f815b2dbca Bump httpd version numbers
Bump httpd version numbers
2024-11-11 18:30:39 +01:00
Rūdolfs Ošiņš 9d981f9210 http: Fix encoding issue in raw file handler
Turns out "content-type: text; charset=utf-8" wasn't valid, it had to be
"content-type: text/plain; charset=utf-8" for browsers to recognise it
properly.
2024-11-08 12:08:31 +01:00
Sebastian Martinez 5657a6ff47 http: Filter by delegate before fetching repo info 2024-10-02 12:05:07 +02:00
Sebastian Martinez 248ae1a231 http: Add MIT and APACHE license files 2024-09-30 11:33:31 +02:00
Sebastian Martinez 9dd61d3bf3 http: Apply warnings from clippy 2024-09-04 07:24:34 +02:00