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.jo...@enterprisedb.com>
wrote:

> Hi Aditya
>
> Can you please review it.
>
> On Sat, Apr 25, 2020 at 3:28 PM Eldhose M Joy <eldhosem...@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.
>>
>> 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"

Reply via email to