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 1mkmFf-0001k7-Fl for pgsql-www@arkaria.postgresql.org; Wed, 10 Nov 2021 11:58:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mkmFd-0005A6-SZ for pgsql-www@arkaria.postgresql.org; Wed, 10 Nov 2021 11:58:49 +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 1mkmFd-00056Z-Ha for pgsql-www@lists.postgresql.org; Wed, 10 Nov 2021 11:58:49 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mkmFW-0004Oy-Fe for pgsql-www@lists.postgresql.org; Wed, 10 Nov 2021 11:58:48 +0000 Received: by mail-lj1-x233.google.com with SMTP id u25so2085062ljo.12 for ; Wed, 10 Nov 2021 03:58:42 -0800 (PST) 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=qqEvMYb/FEMLkhSJ11deqtRkssBNhQKfUZjecq+khkk=; b=oXWGdJNluZqjYxIiXjEimDIjnvXcfUB2dkCEhZdhTYm/n2K4nJae24QnTBizhBOxgQ gy++kRkqw7hh8Ydveuezh+/IwNpirzmBy2a/8mdyQdGN+CdYfQychTR2tvYN1iMDxpEn dpyHZyvNkCj3CK2dmHJb7cQ9LuuEF8WC5e0esRgq7ixlssHUwba5hxd7atOz2oEmX7lr WfzDszWZjeONjdycSS0ywuUHiFOKgLyt/ZhsYoZIAyKMFA/mYo3N9/utDhhwDDRlSH3t 6g/KHIRJH0uHVQHJMW9O4pMUOvplpEN09kZvrOleNKDOdf5YJvUUbByt1JlTMhw8nD48 wYDw== 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=qqEvMYb/FEMLkhSJ11deqtRkssBNhQKfUZjecq+khkk=; b=EW0w2/pjRTVlyLwFGie3ENx05utO1SyEkj/ZZTVerzoxhNLMoxD+L+/T9YFY6Pyxun a8MM13MRcQc4UgdtrJphM8tXaGJgJy4pvF4K1YY/HUr1aNbBQK0mhYV5KuX6PhiLGTZI SY9NsPWRsQb6iSwLlUUuwm8e8nZN93FR21rpwBZidN/mkJlc4Nh8p5SIOrqBK6tInXXF t+Un0RAW5mDstE9OLVsjzrgM/ObxVK8cXsmILYyB7RmntYUpfkkvsj3jq68HFZNyWnT5 lvUHoq+LB8jlDMxisWcFQNSG4t62wEPRqJFWnrYqCNNBpFliAoBRUBs4zHZf+HBQ+BjB h0TQ== X-Gm-Message-State: AOAM530S/nsI3dA4pWT9gFdRNgwFZSsbp2uZKw/O3Bs7J/WvT420ohcP Y2o3I0mOG2lO+K0cRw8GYgiYxnNbTavkBaEznayDCd/EscxtCaOd4mI= X-Google-Smtp-Source: ABdhPJz/fU25wPBr+SsgMw4wzxHoZWkNGh8MXeWpnO4DrbIvcrJNzm16WWu0ZXiXjh+oSWM1kwTtvmpSpeltpUWh1Xc= X-Received: by 2002:a2e:a588:: with SMTP id m8mr16089930ljp.23.1636545520091; Wed, 10 Nov 2021 03:58:40 -0800 (PST) MIME-Version: 1.0 References: <3d2fd679-0cd6-3f1d-5048-4a644eb24001@cmatte.me> In-Reply-To: <3d2fd679-0cd6-3f1d-5048-4a644eb24001@cmatte.me> From: Magnus Hagander Date: Wed, 10 Nov 2021 12:58:27 +0100 Message-ID: Subject: Re: Feature requests: some components still depend on postgresql.org deployment To: =?UTF-8?Q?C=C3=A9lestin_Matte?= Cc: PostgreSQL WWW Content-Type: multipart/alternative; boundary="00000000000062584105d06df229" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000062584105d06df229 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Nov 8, 2021 at 9:02 PM C=C3=A9lestin Matte wrote: > Hello, > > As I've finished installing pglister and its components, it appears that > part of them still make it difficult to install a non-postgresql.org > instance. I'm thinking of two issues: > > - Pgweb's auth is a part of pgweb, an application running most of > postgresql.org's website. I would be great if that component could be > separated from pgweb, so that users can deploy it easily, without having = to > maintain the whole repository. > If other software providing the same auth function already exist and coul= d > be used instead of pgweb, feel free to point them to me. > For a standalone installation of pglister, it should be possible to just use the django authentication system (or any other plugin for that). If you just set USE_PG_COMMUNITY_AUTH=3DFalse. If there are things missing in a setup like that, I think that's should be fixed, rather than cementing the connection with pgweb. - In the different repositories, some files contain links and elements > related to postgresql.org: > * home.html (pglister): main page with instructions for postgresql.org > * base.html (pgweb, pgarchives): headers, navigation bar > * index.html (pgweb, pgarchives): main page, contains news etc. > * page.html (pgarchives): quick links for navigation > * context.py (pgweb): site navigation structure > > It would be great to find a solution to make these files configurable for > a new deployment. > Per above, I don't think pgweb should be part of this, as that has never been intended to be used outside of www.postgresql.org, and I don't think it should be. For the other two, pglister and pgarchives, yes, being able to do that makes a lot of sense. I wonder if we can get away with doing something as simple as the pgeu-system "skin directory" setup. Basically, for those you can configure a SYSTEM_SKIN_DIRECTORY. This directory will get it's templtes directory inserted in the path *ahead* of anything that's in the main system, and also a code/ directory added to the python path, and has some separate settings etc. There's an example of a skin at https://github.com/pgeu/pgeu-web for example (ignore the part that's template.jinja, just the template, code and media directories are relevant. It would still inherit dependencies like bootstrap unless one overrides *all* templates (but for pgarchives and pglister that might actually be reasonable to do, as there aren't that many). But definitely being able to replace things like the "overall theme" should be fairly simple that way? --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/ --00000000000062584105d06df229 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Nov 8, 2021 at 9:02 PM C=C3=A9les= tin Matte <celestin.matte@cm= atte.me> wrote:
Hello,

As I've finished installing pglister and its components, it appears tha= t part of them still make it difficult to install a non-postgresql.org = instance. I'm thinking of two issues:

- Pgweb's auth is a part of pgweb, an application running most of postgresq= l.org's website. I would be great if that component could be separa= ted from pgweb, so that users can deploy it easily, without having to maint= ain the whole repository.
If other software providing the same auth function already exist and could = be used instead of pgweb, feel free to point them to me.

For a standalone installation of pglister, it should be p= ossible to just use the django authentication system (or any other plugin f= or that). If you just set USE_PG_COMMUNITY_AUTH=3DFalse.=C2=A0 If there are= things missing in a setup like that, I think that's should be fixed, r= ather than cementing the connection with pgweb.


- In the different repositories, some files contain links and elements rela= ted to postgresql.org:
* home.html (pglister): main page with instructions for postgresql.org
* base.html (pgweb, pgarchives): headers, navigation bar
* index.html (pgweb, pgarchives): main page, contains news etc.
* page.html (pgarchives): quick links for navigation
* context.py (pgweb): site navigation structure

It would be great to find a solution to make these files configurable for a= new deployment.

Per above, I don't= think pgweb should be part of this, as that has never been intended to be = used outside of www.postgresql.org, and I don't think it should be.



<= /div>
It would still inherit dependencies like bootstrap unless one ove= rrides *all* templates (but for pgarchives and pglister that might actually= be reasonable to do, as there aren't that many). But definitely being = able to replace things like the "overall theme" should be fairly = simple that way?

--
=C2=A0Magnus Hagander
=C2=A0Me: = https://www.hagander= .net/
=C2=A0Work: https://www.redpill-linpro.com/
--00000000000062584105d06df229--