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.3 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 612571F4B4 for ; Tue, 2 Feb 2021 08:08:15 +0000 (UTC) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6qjL-0000XO-Gy; Tue, 02 Feb 2021 09:08:11 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1l6qjK-0000XN-W4; Tue, 02 Feb 2021 09:08:10 +0100 Date: Tue, 2 Feb 2021 09:08:10 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Eric Wong , meta@public-inbox.org Subject: Re: generic message-id redirector Message-ID: <20210202080810.r2rc3fo6pkdr2kkh@pengutronix.de> References: <20210201104115.mconuob33y3exr2u@pengutronix.de> <20210201111049.GA9584@dcvr> <20210201132630.y53ydk4w6o7fyrzp@pengutronix.de> <20210201192202.6syd2o5jrvejdnf7@chatter.i7.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="otx466p3kqteklkm" Content-Disposition: inline In-Reply-To: <20210201192202.6syd2o5jrvejdnf7@chatter.i7.local> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: meta@public-inbox.org List-Id: --otx466p3kqteklkm Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 01, 2021 at 02:22:02PM -0500, Konstantin Ryabitsev wrote: > On Mon, Feb 01, 2021 at 02:26:30PM +0100, Uwe Kleine-K=F6nig wrote: > > > PublicInbox::NewsWWW fallback lets //$host/$message_id work (no /r/). > > > It can be run as a standalone PSGI, too, see examples/newswww.psgi > >=20 > > Huh, it seems I have to dig deeper into the internals of Plack. Thanks. > >=20 > > > At least it works on my Tor .onion mirror of lore: > > > http://lore.czquwvybam4bgbro.onion/ and > > > http://rskvuqcfnfizkjg6h5jvovwb3wkikzcwskf54lfpymus6mxrzw67b5ad.onion/ > > >=20 > > > To get /r/, you can use the "mount" directive in the > > > Plack::Builder DSL as shown in example/newswww.psgi > > >=20 > > > > Is there some additional code or configuration necessary to make th= is > > > > work? Am I missing something? > > >=20 > > > That said, I seem to recall lore.kernel.org/r/ existing before NewsWW= W, > > > so maybe it was something else, too. (It may have even existed > > > somewhere on kernel.org before lore) > >=20 > > @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?! >=20 > /r/ is just a mapping in upstream proxy that rewrites /r/ -> / Ah, I wasn't aware that public-inbox does that already. I have to improve my Perl skills it seems :-) (It seems from the outside I have to use /r/ though for lore.kernel.org, https://lore.kernel.org/20201215212228.185517-2-clemens.gruber@pqgruber.com at least doesn't work.) Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --otx466p3kqteklkm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmAZCGcACgkQwfwUeK3K 7An2BQf9EijDAcjYoFSnM2J0zonGQQzNIIckMH+cxRIdfTy+6cUVICsixq/l8JA9 rWAsvMh8i0pt0beyiixki7qtS1y+1VZkTQnHKNqoiRu2IW5pGW9lLV/jSm++Dtfx f0z6i4x2OU6cZxy/OVImTidl2cvmER1WY78MVy0WUGoqo2tDCbk9AkxWnXUL/HkC U/AgDXXIsfsJFgC0bl27uw8g66Rlt7zKFpoDlmfI2xcohWqI//f+UobRplHBjE7F etTNWCtBWhLEi08bf8+FfBF+drBgjNVqK8uGqZoZj9XnyEIO47txoWUy7gtagbcY 2fe4ObzBqNvmxpUb9FS4gc032dVEKw== =ki9L -----END PGP SIGNATURE----- --otx466p3kqteklkm--