user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Eric Wong <e@80x24.org>, meta@public-inbox.org
Subject: Re: generic message-id redirector
Date: Tue, 2 Feb 2021 09:08:10 +0100	[thread overview]
Message-ID: <20210202080810.r2rc3fo6pkdr2kkh@pengutronix.de> (raw)
In-Reply-To: <20210201192202.6syd2o5jrvejdnf7@chatter.i7.local>

[-- Attachment #1: Type: text/plain, Size: 1820 bytes --]

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/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2021-02-02  8:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 10:41 Uwe Kleine-König
2021-02-01 11:10 ` Eric Wong
2021-02-01 13:26   ` Uwe Kleine-König
2021-02-01 17:17     ` Eric Wong
2021-02-01 19:22     ` Konstantin Ryabitsev
2021-02-02  8:08       ` Uwe Kleine-König [this message]
2021-02-02 13:06         ` Konstantin Ryabitsev
2021-02-02 14:02           ` Uwe Kleine-König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210202080810.r2rc3fo6pkdr2kkh@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this inbox:

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).