From 5bf20db8e79f07aed49e0cc510d7522dcbaf9e9a Mon Sep 17 00:00:00 2001 From: Nyx Date: Sat, 12 Jul 2025 03:50:26 -0500 Subject: [PATCH] Add /_continuwuity/ paths --- docs/deploying/generic.md | 2 +- src/api/router.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/deploying/generic.md b/docs/deploying/generic.md index 9128f346..cfa9b32f 100644 --- a/docs/deploying/generic.md +++ b/docs/deploying/generic.md @@ -172,7 +172,7 @@ As we would prefer our users to use Caddy, we will not provide configuration fil You will need to reverse proxy everything under following routes: - `/_matrix/` - core Matrix C-S and S-S APIs -- `/_conduwuit/` - ad-hoc Continuwuity routes such as `/local_user_count` and +- `/_conduwuit/` and/or `/_continuwuity/` - ad-hoc Continuwuity routes such as `/local_user_count` and `/server_version` You can optionally reverse proxy the following individual routes: diff --git a/src/api/router.rs b/src/api/router.rs index d1b05a91..8072fa5b 100644 --- a/src/api/router.rs +++ b/src/api/router.rs @@ -187,6 +187,7 @@ pub fn build(router: Router, server: &Server) -> Router { .ruma_route(&client::well_known_support) .ruma_route(&client::well_known_client) .route("/_conduwuit/server_version", get(client::conduwuit_server_version)) + .route("/_continuwuity/server_version", get(client::conduwuit_server_version)) .ruma_route(&client::room_initial_sync_route) .route("/client/server.json", get(client::syncv3_client_server_json)); @@ -226,13 +227,15 @@ pub fn build(router: Router, server: &Server) -> Router { .ruma_route(&server::well_known_server) .ruma_route(&server::get_content_route) .ruma_route(&server::get_content_thumbnail_route) - .route("/_conduwuit/local_user_count", get(client::conduwuit_local_user_count)); + .route("/_conduwuit/local_user_count", get(client::conduwuit_local_user_count)) + .route("/_continuwuity/local_user_count", get(client::conduwuit_local_user_count)); } else { router = router .route("/_matrix/federation/*path", any(federation_disabled)) .route("/.well-known/matrix/server", any(federation_disabled)) .route("/_matrix/key/*path", any(federation_disabled)) - .route("/_conduwuit/local_user_count", any(federation_disabled)); + .route("/_conduwuit/local_user_count", any(federation_disabled)) + .route("/_continuwuity/local_user_count", any(federation_disabled)); } if config.allow_legacy_media {