Обсуждение: Addition of support for base path in pgAdmin Web
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
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
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 AdityaCan 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 & RegardsAkshay JoshiSr. Software ArchitectEnterpriseDB Software India Private LimitedMobile: +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"