Re: [pgAdmin][RM4755] pgAdmin does not work behind reverse proxy if in built server is used as it is

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin][RM4755] pgAdmin does not work behind reverse proxy if in built server is used as it is
Date: 2019-09-19 09:58:34
Message-ID: CA+OCxoy=mCDSGMBr7dXkW-rbYA-+v6cend1Ub1zLoSsSYqdWuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

On Thu, Sep 19, 2019 at 6:29 AM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

> Hi Hackers,
>
> Attached is the patch to allow pgAdmin to work behind proxy with its in
> built server. I have used werkzeug fixer -
> https://werkzeug.palletsprojects.com/en/0.15.x/middleware/proxy_fix/#module-werkzeug.middleware.proxy_fix
>

Does this work with both X-Scheme and X-Forwarded-Proto headers as
discussed?

I assume (as you haven't removed it) that it works in conjunction with the
existing reverse proxy code?

Thanks!

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2019-09-19 10:13:00 Re: [pgAdmin][RM4755] pgAdmin does not work behind reverse proxy if in built server is used as it is
Previous Message Dave Page 2019-09-19 08:58:47 pgAdmin 4 commit: Don't use Python to get the app details from the Make