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-Status: No, score=-3.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5CAD01F4B4 for ; Mon, 1 Feb 2021 19:22:06 +0000 (UTC) Received: by mail-qt1-x831.google.com with SMTP id n8so4777680qtp.5 for ; Mon, 01 Feb 2021 11:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=LPEWUt9icL+9nrQU2DjNnOhtxabxXmnxW+JClsuoQDo=; b=WbOwMLxPRiUX88KmklbqxPcKeQ3YpNh18eH4RbdBvorFnysrojOh6f3CBpY3rEXVfJ rXTdnsPHIFbLTAFzA86sWklDAIGMFFJPFp6hXTpYeBnM43fpqUFZ54Mhg5expiqWpHBv 1nzf9CQJwZ7pXcu8IZiX0oyo7ZISQhdG/gEPw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=LPEWUt9icL+9nrQU2DjNnOhtxabxXmnxW+JClsuoQDo=; b=Pd/j7+YaNFqX0vhCg5AME+ATEVPE0W1BQHkdeiR9F0+WmR2Xn0+MJ+ZZEdz5/c0A3K ymGoF7YW7NEYogLo5yx58SRA8atbeL2XvHJxcGa452o3ll5EuL/1apllqn3kh2mjDmT0 k1dnSTYcJTU18rozy0vCQVONKKYDA8FMqES29RZCW1MHJFaknytf17cC09HXH3UMngNe tLhqDonDIK7nznW5dysfsDpnVG5PrDb9sbca1ZYU2Xx6GKv7sMlpThp6tMPBhjqv3tCR pymmfZJql+FEmm3gHmoBRstl2o7aCOc+9lo/K7caRFMM5s83heh5VoL1f5+Va7gSkeXp 7l0A== X-Gm-Message-State: AOAM533QQpsrjlivVO3NIxr+pNSW6hBkff84hsPN+vheZ6Ae2Ft+4+wO ZyXPXbmRb9cPD1Dge/fto+kF/g== X-Google-Smtp-Source: ABdhPJwAXpBAIiVNBZaPD6kdB/2T0wZwXUULhSTRnoEDPUmYQ/b3k9GPstszj+40n4OAZfP0qrVECw== X-Received: by 2002:ac8:1482:: with SMTP id l2mr16821098qtj.301.1612207325038; Mon, 01 Feb 2021 11:22:05 -0800 (PST) Received: from chatter.i7.local (bras-base-mtrlpq5031w-grc-32-216-209-220-18.dsl.bell.ca. [216.209.220.18]) by smtp.gmail.com with ESMTPSA id z187sm4169621qkb.52.2021.02.01.11.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 11:22:04 -0800 (PST) Date: Mon, 1 Feb 2021 14:22:02 -0500 From: Konstantin Ryabitsev To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Eric Wong , meta@public-inbox.org Subject: Re: generic message-id redirector Message-ID: <20210201192202.6syd2o5jrvejdnf7@chatter.i7.local> Mail-Followup-To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Eric Wong , meta@public-inbox.org References: <20210201104115.mconuob33y3exr2u@pengutronix.de> <20210201111049.GA9584@dcvr> <20210201132630.y53ydk4w6o7fyrzp@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210201132630.y53ydk4w6o7fyrzp@pengutronix.de> List-Id: On Mon, Feb 01, 2021 at 02:26:30PM +0100, Uwe Kleine-König wrote: > > PublicInbox::NewsWWW fallback lets //$host/$message_id work (no /r/). > > It can be run as a standalone PSGI, too, see examples/newswww.psgi > > Huh, it seems I have to dig deeper into the internals of Plack. Thanks. > > > At least it works on my Tor .onion mirror of lore: > > http://lore.czquwvybam4bgbro.onion/ and > > http://rskvuqcfnfizkjg6h5jvovwb3wkikzcwskf54lfpymus6mxrzw67b5ad.onion/ > > > > To get /r/, you can use the "mount" directive in the > > Plack::Builder DSL as shown in example/newswww.psgi > > > > > Is there some additional code or configuration necessary to make this > > > work? Am I missing something? > > > > That said, I seem to recall lore.kernel.org/r/ existing before NewsWWW, > > so maybe it was something else, too. (It may have even existed > > somewhere on kernel.org before lore) > > @Konstantin: It would be great if you shared how this is implemented on > lore.kernel.org. For me this redirection is so convenient I definitely > want to have it. I wonder if it is considered good by others, too. Then > maybe implement it in the core?! /r/ is just a mapping in upstream proxy that rewrites /r/ -> / :) Best regards, -K