Your example documentation doesn’t include the X-Scheme header, which I think 
is pretty important when you are proxying to an HTTP backend but using HTTPS 
terminated at Traefik.

FWIW, I wasn’t using a path but I was still unable to get it working correctly 
behind Traefik even with a SCRIPT_NAME=/

I’ll take another look at it soon and see if I can get it working better with 
the newer container that has the servers.json change already included.

Thanks,

Andrew

From: Dave Page
Sent: Wednesday, July 10, 2019 7:17 AM
To: Andreas Steinel
Cc: Andrew Coleman; pgadmin-support@lists.postgresql.org
Subject: Re: PgAdmin4 behind SSL proxy

Hi

On Mon, Jul 8, 2019 at 5:22 PM Andreas Steinel <a.stei...@gmail.com> wrote:
Hi Dave,

On Mon, Jul 8, 2019 at 6:06 PM Dave Page <dp...@pgadmin.org> wrote:
> I managed to find some time to start looking at this. I've been working with 
> Nginx so far, and will hopefully get to Traefik tomorrow.

I posted a working configuration for serving pgadmin4 as the root
application with traefik in Ticket #4443 (without SSL).

I've done some testing with both Traefik and Nginx now, and committed some doc 
changes at 
https://www.pgadmin.org/docs/pgadmin4/dev/container_deployment.html#reverse-proxying

Note that I kept the Traefik part simple, showing options with plain Docker 
only. I'll leave it up to the user to translate that into 
Compose/Swarm/K8s/whatever.

Feedback or suggestions for improvements welcome!
 
-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Reply via email to