From: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com> |
---|---|
To: | Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com> |
Cc: | Eldhose M Joy <eldhosemjoy(at)yahoo(dot)com>, pgadmin-hackers <pgadmin-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Addition of support for base path in pgAdmin Web |
Date: | 2020-04-27 05:39:19 |
Message-ID: | CAM9w-_m5zGkq-gAa+6409Knojn3N2Dy-VFXp-RE55hXrLsnkeQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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;
Please refer:
https://www.pgadmin.org/docs/pgadmin4/4.20/server_deployment.html#hosting
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(dot)joshi(at)enterprisedb(dot)com>
wrote:
> Hi Aditya
>
> Can you please review it.
>
> On Sat, Apr 25, 2020 at 3:28 PM Eldhose M Joy <eldhosemjoy(at)yahoo(dot)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.
>>
>> https://github.com/postgres/pgadmin4/compare/master...eldhosemjoy:patch-2
>> https://github.com/postgres/pgadmin4/compare/master...eldhosemjoy:patch-3
>>
>> 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"
From | Date | Subject | |
---|---|---|---|
Next Message | Akshay Joshi | 2020-04-27 06:35:21 | Re: [pgAdmin4][RM#5213] Fixed materialized view issue when user perform refresh on it |
Previous Message | Yogesh Jain | 2020-04-27 05:27:56 | Re: [pgAdmin][RM4279] : Issue with File Browser Home button |