Re: Addition of support for base path in pgAdmin Web - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject Re: Addition of support for base path in pgAdmin Web
Date
Msg-id CAM9w-_m5zGkq-gAa+6409Knojn3N2Dy-VFXp-RE55hXrLsnkeQ@mail.gmail.com
Whole thread Raw
In response to Re: Addition of support for base path in pgAdmin Web  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List pgadmin-hackers
Hi Eldhose,

The changes you've suggested are already implemented in pgAdmin (https://github.com/postgres/pgadmin4/blob/master/web/pgAdmin4.py#L87). Almost all the servers provide the way to set the header - "X-Script-Name". pgAdmin uses X-Script-Name to set the prefix. You don't need to add any new config in pgAdmin. For instance, in nginx it can be done as:
proxy_set_header X-Script-Name /pgadmin4;


In case, the above setting is not working then please log a bug at - https://redmine.postgresql.org/projects/pgadmin4/issues/new


On Mon, Apr 27, 2020 at 10:29 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi Aditya 

Can you please review it.

On Sat, Apr 25, 2020 at 3:28 PM Eldhose M Joy <eldhosemjoy@yahoo.com> wrote:
Hi,

I have added a commit on 2 files to include a base path that would avoid all the hassle while doing a reverse proxy on to the pgAdmin.  Please find the commits below.


Thanks and Regards,
Eldhose

Sent from my iPhone


--
Thanks & Regards
Akshay Joshi
Sr. Software Architect
EnterpriseDB Software India Private Limited
Mobile: +91 976-788-8246


--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"

pgadmin-hackers by date:

Previous
From: Yogesh Jain
Date:
Subject: Re: [pgAdmin][RM4279] : Issue with File Browser Home button
Next
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin4][RM#5213] Fixed materialized view issue when userperform refresh on it