[pgAdmin][RM4768] Reverse proxy on non-standard port - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject [pgAdmin][RM4768] Reverse proxy on non-standard port
Date
Msg-id CAM9w-_nsTA0hT7imVnq89A=d-+bBQgNySEaiEowvv2oa8tKgNA@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin][RM4768] Reverse proxy on non-standard port  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List pgadmin-hackers
Hi Hackers,

Attached is the patch to allow pgAdmin to run behind reverse proxy on a non standard port. 
The middleware - https://werkzeug.palletsprojects.com/en/0.15.x/middleware/proxy_fix/#werkzeug.middleware.proxy_fix.ProxyFix allows us to set the number of trusted ports (and few other params) behind the proxy. By default it is zero.
With this patch, user can set these params using pgAdmin config.
I have set the default value for port as 1, which will allow to run behind non-standard port.

I have added the documentation under reverse proxy section.

Kindly review.

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

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: There is no option to Copy data with headers from Que
Next
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin4][Patch] - RM 3009 - Right click to copy from data grid, optionally with headers.