From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5468F1F403 for ; Wed, 5 Oct 2022 22:29:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1665008981; bh=9Jo1OhFyRc2tBFj59V/aU3rP/U+3PwUT7E+vs3lqAgc=; h=From:To:Subject:Date:From; b=bfX4ZB3feCaaZVtjGjJ/x+WUO/bM4LaiPN9yLYmHhODB4H1hkw1FsumPxoIgpg4Tb VPCyEI2jFvUlXRxiiHp4hB+2NW1EPOznMSLWZtvyM7MJyrhDNByxTE/U7B/LgV2Ubu ED7jyt+e7yavgGtDdT0nNQ6OkchkpdOh7C0B5RwA= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/3] www: configurable cgit fallback for coderepos Date: Wed, 5 Oct 2022 22:29:38 +0000 Message-Id: <20221005222941.4098-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Since WwwCoderepo may not be to the tastes of everyone (but certainly will be for me :>), we'll continue allowing (and defaulting) to using cgit, first, for backwards compatibility. IOW, we try cgit, and fall back to WwwCoderepo if cgit returns 404. publicinbox.cgit=fallback swaps them: try WwwCoderepo, and fall back to cgit if WwwCoderepo returns 404 In the future, publicinbox.cgit=rewrite will 301 cgit URLs to equivalent WwwCoderepo URLs. Eric Wong (3): www: do not call ->coderepo->srv on sub ref www: cgit: fall back to WwwCoderepo on 404s www: support publicinbox.cgit knob Documentation/public-inbox-config.pod | 21 ++++++++++++++++++ lib/PublicInbox/Cgit.pm | 5 +++-- lib/PublicInbox/GitHTTPBackend.pm | 19 +++++++++++++--- lib/PublicInbox/Qspawn.pm | 8 +++---- lib/PublicInbox/WWW.pm | 31 ++++++++++++++++----------- 5 files changed, 62 insertions(+), 22 deletions(-)