Commit Graph
105 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš 7e725f3bdf Move public deployment from app.radicle.xyz to radicle.network 2026-04-23 00:08:23 +02:00
Rūdolfs OšiņšandFintan Halpenny 42bc27c1f8 httpd: Add canonical and peer refs to repo API
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2026-04-22 09:45:00 +02:00
Rūdolfs Ošiņš 7cef0618ce httpd: Add API endpoint for job cobs
Serve them on /repos/{rid}/xyz.radworks.job/{sha}.
2026-04-21 11:38:15 +02:00
Rūdolfs Ošiņš bd3b660b17 httpd: Release 0.24.0 2026-02-26 09:43:02 -06:00
justarandomgeek eaed75b803 update axum-listener to 0.2.2 2026-02-26 09:13:23 -06:00
justarandomgeek c69d095600 disable SIGHUP handler for windows 2026-02-26 09:13:23 -06:00
justarandomgeek e3db969604 disable Unix Domain Sockets for windows 2026-02-26 09:13:23 -06:00
Rūdolfs Ošiņš 2bbb35b2f1 Improve comment 2026-02-26 09:06:49 -06:00
Rūdolfs Ošiņš 7dd70638f5 Improve /node api endpoint response time
Work around an issue where radicle-node takes a long time to respond to
status and config requests blocking the UI because we use the node
avatar from the config in almost all layouts.
2026-02-26 09:03:10 -06:00
Rūdolfs Ošiņš c21389a828 Upgrade radicle crates to latest versions
radicle 0.18.0 -> 0.21.0
radicle-surf 0.22.0 -> 0.27.0
radicle-term 0.14.0 -> 0.17.0
radicle-crypto 0.13.0 -> 0.15.0

Fixes the following issues:
  - broken pinned repo listing while repos are being fetched
  - broken source tree browser when there are `[]` characters in folder names
2026-02-24 23:06:24 -06:00
Ivan Shapovalov 1b6d2830d7 httpd: accept /{rid}.git/{nid}/ paths as GIT_NAMESPACE-d remotes
This patch adds support for serving `/{rid}/{nid}/...` paths as
`GIT_NAMESPACE`-d http remotes, using `{nid}` as the namespace.
Radicle's on-disk repo storage already uses a Git-namespace-compatible
notion for peer refs (`refs/namespaces/*`), so it is merely a matter of
passing the right `$GIT_NAMESPACE` to the `git http-backend` process.

This way, it becomes possible to directly clone or fetch from URLs like
`http://httpd.domain.tld/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git/z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM`
to directly access the given node's ref namespace:

    $ cd radicle-explorer
    $ git remote add intelfx https://iris.radicle.xyz/z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/z6MkqbVudjUcuxUmwWfW6U886CnhoX5wmkEDsAXju9F9UBAo
    $ git pull intelfx work/httpd-git-namespace // or fetch, or ...

Instead of mucking about with

    $ git fetch origin refs/namespaces/{nid}/refs/heads/{branch}:refs/heads/{branch}
2026-02-24 11:57:12 -06:00
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