RE: PgAdmin4 behind SSL proxy

From: Andrew Coleman <penguincoder(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>, Andreas Steinel <a(dot)steinel(at)gmail(dot)com>
Cc: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: RE: PgAdmin4 behind SSL proxy
Date: 2019-07-10 18:25:58
Message-ID: 5d262db3.1c69fb81.8398b.b175@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

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(at)lists(dot)postgresql(dot)org
Subject: Re: PgAdmin4 behind SSL proxy

Hi

On Mon, Jul 8, 2019 at 5:22 PM Andreas Steinel <a(dot)steinel(at)gmail(dot)com> wrote:
Hi Dave,

On Mon, Jul 8, 2019 at 6:06 PM Dave Page <dpage(at)pgadmin(dot)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

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2019-07-11 08:08:48 Re: PgAdmin4 behind SSL proxy
Previous Message Edson Richter 2019-07-10 18:16:10 RES: Strange "empty dialog" in workspace