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ö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/ -> / 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 -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |