Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mff87-000683-4C for pgsql-www@arkaria.postgresql.org; Wed, 27 Oct 2021 09:21:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mff86-0008De-2c for pgsql-www@arkaria.postgresql.org; Wed, 27 Oct 2021 09:21:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mff85-0008DV-Sr for pgsql-www@lists.postgresql.org; Wed, 27 Oct 2021 09:21:53 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mff82-0004F4-Vy for pgsql-www@lists.postgresql.org; Wed, 27 Oct 2021 09:21:52 +0000 Received: by mail-lf1-x132.google.com with SMTP id c28so4684424lfv.13 for ; Wed, 27 Oct 2021 02:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x+C7f8638Cl0GSLSI1DRqO42BGoSpHcHNmuJy75n3Mg=; b=pDBsMo1w+uabgGcuqKDFV/h0z+v146tEpSWGLxpCOVSXDsPJSCpJJis/KKcc72sM9Y 40AOZ5FUULlXjAgIbKaW7dhkLAZFyxk7K+WjviNKTRPbTzMUz++5Shpmpa/3tl5jEs+x Fvk7gjsRc/mUOqetJJqAYQr9tlpZ3ipcRaO/oFjDFUsanf2UBT9GwrUAqjMHfrmxXKlY Yo+EaMJA7SrjBuuOP6PMAb+uo2MKXMsIdVrCL/Pggycp+w0rqhl7pCZDqea64vYEMk4A NfsjvdA7frEXN38oNo+/D+3IKZvdmu+fCW1IpJuufdTRLS9DZvlXxCKze6HdprHG5nij En1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x+C7f8638Cl0GSLSI1DRqO42BGoSpHcHNmuJy75n3Mg=; b=h7+fcCwsf/GwgLtR77nP1w7aw2cj00nVc8MfTK5i6g+UecyAgv7x1u3YRSwrnkb2dJ j/iXXIcHqLHfvmmD1L8wG3RmxHFbqDfWSFlJ8HxZRiTJKeodqhwIMbuYr9HU9YZBGJx0 KG7N+nLpnO2Rbs2/KKT3Q4qN1Q9fQyPFlUeLK5/oG7veih2gd052MZLxOR3a8Udb1JrZ svPVM+5vdi68Sr5E78sko2zvCOKvB+CUew8VYTGdnPXORY1JIIryVupnNnRBRKRXODHI 1gHuEJ6xo7NhwcEKbYP8jDuYdpT4LUApgBN3zGxzgqS6urSYIdtz+LhFlckdFHX+gGd7 iO/Q== X-Gm-Message-State: AOAM5300an2BxUlwwryQiA4D0ItwdpcCTQkC0mjR9oKy275GQWK3sY+e gtm+JqlCBZcYgkj0N5M3AWfOBKtsBSjvZyyRPdNHgIwSwvg= X-Google-Smtp-Source: ABdhPJxZpB233uFvfJdHONQOJ88x9OO25ojfAv0clykCKegwWnrHz9jO1fkVJ7oNnEK5DbY8JPO2NjeM+K8hugOJ8NQ= X-Received: by 2002:a19:520a:: with SMTP id m10mr27155081lfb.399.1635326508853; Wed, 27 Oct 2021 02:21:48 -0700 (PDT) MIME-Version: 1.0 References: <6945e6fc-0006-454e-079f-f7b91af2be22@cmatte.me> In-Reply-To: <6945e6fc-0006-454e-079f-f7b91af2be22@cmatte.me> From: Magnus Hagander Date: Wed, 27 Oct 2021 11:21:37 +0200 Message-ID: Subject: Re: [PATCH] pgweb: Add ARCHIVES_FRONT_ADDRESS to allow configuration of archives To: =?UTF-8?Q?C=C3=A9lestin_Matte?= Cc: PostgreSQL WWW Content-Type: multipart/alternative; boundary="000000000000a703b405cf521f81" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a703b405cf521f81 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 26, 2021 at 4:34 PM C=C3=A9lestin Matte wrote: > Hello, > > Domain of messages in pgweb's search is currently hardcoded as > postgresql.org > in templates/search/listsearch.html. This patch allows to use another > domain > for links to messages in archives in the search function. > Since pgarchives' domain can differ from pgweb's one, a new variable is > defined > for that purpose instead of using SITE_ROOT. > This patch adds a new parameter ARCHIVES_FRONT_ADDRESS, which is then never used. Instead it passes in ARCHIVES_SEARCH_SERVER into the templates. I'm pretty sure that's not intentional? They should both b ARCHIVES_FRONT_ADDRESS? --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/ --000000000000a703b405cf521f81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Oct 26, 2021 at 4:34 PM C=C3=A9le= stin Matte <celestin.matte@c= matte.me> wrote:
Hello,

Domain of messages in pgweb's search is currently hardcoded as postgresql.= org
in templates/search/listsearch.html. This patch allows to use another domai= n
for links to messages in archives in the search function.
Since pgarchives' domain can differ from pgweb's one, a new variabl= e is defined
for that purpose instead of using SITE_ROOT.

This patch adds a new parameter=C2=A0ARCHIVES_FRONT_ADDRESS, which is= then never used. Instead it passes in ARCHIVES_SEARCH_SERVER into the temp= lates.

I'm pretty sure that's not intentio= nal? They should both b ARCHIVES_FRONT_ADDRESS?

-= -
=C2= =A0Magnus Hagander
=C2=A0Me: https://www.hagander.net/
=C2=A0Work: https://www.redpill-linpro.com/<= /a>
--000000000000a703b405cf521f81--