Re: Development environment setup for pgarchives and pgweb

From: Sahil Harpal <sahilharpal1234(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: Development environment setup for pgarchives and pgweb
Date: 2022-06-03 18:52:05
Message-ID: CAKi=nnfrHfXtTtCp8oLNhgcj02Q0tb9mp6BAn5PyuQ801GyTaQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

Hello Magnus,
Yeah you are right /list/ will not work directly in pgweb.
Actually I will be working on the pages related to mailing lists (eg.
https://www.postgresql.org/list/,
https://www.postgresql.org/list/pgsql-admin/,
https://www.postgresql.org/list/pgsql-admin/2022-03/,
https://www.postgresql.org/message-id/29d1112e-0bc5-02d2-5f2f-7ed256edcea9%40gmail.com
etc.)
I also think authentication doesn't need to access most of the pgarchives'
data. It will be required only to get private data. In the current setup, I
am running pgarchives on port 9000 and pgweb on 8000. In the community auth
of pgweb, I added the URL of pgarchives in the redirect URL field.
http://127.0.0.1:9000 redirects me to the login screen of pgweb.
I think I don't even need pgweb. In the current configuration, I changed
PUBLIC_ARCHIVES = True & ALLOW_RESEND = False and it worked. I guess making
these changes skips the authentication step, which is not required to
access public data.
I also made a few changes to access /admin/. Since in the code present on
the github this part is disabled. Now I can add sample/dummy data from the
admin panel.
Since my work will involve mostly frontend parts, I think for now I don't
even need to think about the reverse proxy thing. I can directly work on
the templates directory of pgarchives.
Thanks for giving me the right direction!
---
Sahil Harpal

On Fri, 3 Jun 2022 at 21:49, Magnus Hagander <magnus(at)hagander(dot)net> wrote:

>
>
> On Thu, Jun 2, 2022, 09:38 Sahil Harpal <sahilharpal1234(at)gmail(dot)com> wrote:
>
>> Hello,
>> As a part of GSoC 2022, I am working on the project pgarchives. I have
>> cloned both pgarchives & pgweb and installed all the dependencies. But I am
>> facing a problem in connecting pgarchives to pgweb. If I open
>> the pgarchives in the browser, it first redirects me to login screen of
>> pgweb. Then after giving credentials and submitting the form, it remains on
>> the same screen. Just the URL is changing. Also I am getting 404 on
>> accessing mailing lists from the mailing lists option present in the quick
>> links section of pgweb.
>> Could you please help me resolve these issues and to set this up?
>>
>
>
> It is normal that the link to /list/ directly on the site does not work.
> For that to work you need to set up a reverse proxy that forwards /list/ on
> the pgweb port to whatever port you run pgarchives on. But that's not
> needed to test and use pgarchives.
>
> The majority of pgarchives doesn't need or use any authentication at all,
> but I assume you're planning to do something that needs it. It's hard to
> figure out from your screenshot what is actually failing though. Which port
> is pgarchives on? And what url is actrually triggering the initial
> redirect? Everything in your screenshots seems to be from pgweb and nothing
> from pgarchives?
>
> /Magnus
>
>>

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Roger Pack 2022-06-03 23:04:48 Fwd: Difficult to join lists
Previous Message Magnus Hagander 2022-06-03 15:47:15 Re: Development environment setup for pgarchives and pgweb