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-ASN: AS16276 94.23.0.0/16 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4AE9D1F953 for ; Sun, 26 Dec 2021 20:14:01 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1640549638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AlfGYuXESkUh95n1LN8jVe5H5DBRSRS8gqdycqHARGU=; b=ifUTMsAyKXJjNQyBPzyOoZ/d3fucs8KvGpZX2AObx4YBaCAd6VXvHJAN+VVvY3FR5Ycwvq 14eF/WOXzlW7dvL+jsrWTRMMA+e0DIHvq2v5epFgjM8v2ud3x94ybyHU0czxkDzWwzRSVK 2iOd1VSZEJdHkVPDCausJ1kYSCEBg/slX8Du+3pfB0y8Rln/I0YY50oMWKPCap6sICjx/v 7VqC1aQs9eNxXgGh50UZJ4FnfB6D2VnuCcc7K+qIzhPwXA8Xdne9MKDPuZ3j+km6TN96WU 5yG4s+HfQzfSICkOA6vXFzpL66/q8iDTITqluA049iDTc52fpFcw8YtIj26vNw== From: Kyle Meyer To: Soft Works Cc: meta@public-inbox.org Subject: Re: Questions about Public Inbox setup and configuration In-Reply-To: References: Date: Sun, 26 Dec 2021 15:13:49 -0500 Message-ID: <87a6gn6s5e.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyleam.com List-Id: Soft Works writes: > Though, I have a number of questions to which I couldn=E2=80=99t find an = answer. > > 1. At the top of the page it says "($INBOX_DIR/description missing)", eve= n=20 > though the maildir contains a description file. > (interestingly, several mirrors are 'suffering' for the same problem) > How can I fix this? Hmm, maildir? Perhaps the issue is that you're placing this file in the wrong place. The description file for each inbox should be at the directory pointed to by publicinbox.$name.inboxdir in ~/.public-inbox/config. The first time you add it, you may need to restart or send a SIGHUP to the httpd service, but my understanding is that should be unnecessary as of v1.7.0 (specifically commit b9e7ecbb, inbox: drop memoization/preload, cleanup expires caches). > 2. How are the HTML views generated? Are there any templates that I could > modify? No, I don't think there are any templates you can modify. In order to see how the HTML is generated, perhaps lib/PublicInbox/WWW*.pm files and lib/PublicInbox/View.pm would be the best source files to start with. > 3. When a message cannot be found, it shows a list of mirrors to check fo= r=20 > that message. How can I disable this? > (it's more than unlikely that any of them would have it) Those URLs are hard coded in lib/PublicInbox/ExtMsg.pm, and there's no way to change them or disable their display via configuration yet. However, there is a TODO comment in that file about making the list user-configurable, so I imagine Eric would be open to a patch. > 4. The services are running behind NGINX which forwards the requests to=20 > a local-only port. Now the www interface is showing URLs at many place= s=20 > like http://localhost:8123/mailbox instead of the public URL. > How can I set this up correctly? Have you tried something like proxy_set_header HOST $host; ? See public-inbox's examples/nginx_proxy for an example.