From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 79C011F47C for ; Wed, 4 Jan 2023 10:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1672828451; bh=Vd2A5E9yu35ptRJOucpUpwbnghoUmAPsgqt6slJRFJc=; h=From:To:Subject:Date:From; b=NTYKF+pnoShptSyb15LPLbCzyL8F6yr3m7yDNYkzcCOvclqsut0TIp2QjX+B+AqQr GhKkxMal2u8Jy1KU0qDfD24GglOenu+5SRn+VJ2EIazJ0XdnCcv3TJyt7YZy8WUTmw nNqfojOdIdPgNTaNJN58uA3+R+UkL/K6cTOnU0WI= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/3] www: cleanup URL generation around coderepos Date: Wed, 4 Jan 2023 10:34:02 +0000 Message-Id: <20230104103405.2432349-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This fixes coderepo URL generation and gives reasonable defaults based on the project.list nickname. It also accounts properly for `mount' directives in the PSGI file using Plack::App::URLMap to give an entire instance a URL prefix (as I do with yhbt.net/lore) Eric Wong (3): git: fix non-empty SCRIPT_NAME handling for PSGI mounts git: pub_urls shows base_url default www: make coderepo URL generation more consistent lib/PublicInbox/Git.pm | 9 +++++---- lib/PublicInbox/WwwStream.pm | 18 ++++++++---------- lib/PublicInbox/WwwText.pm | 20 +++++++------------- 3 files changed, 20 insertions(+), 27 deletions(-)