Re: pgAdmin Docker container: specify web URL path prefix?

From: Glen Bakeman <gbakeman(at)live(dot)com>
To: Yogesh Mahajan <yogesh(dot)mahajan(at)enterprisedb(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: pgAdmin Docker container: specify web URL path prefix?
Date: 2022-04-13 02:17:34
Message-ID: MW4PR17MB4513397D5F05F0013DDDC150ABEC9@MW4PR17MB4513.namprd17.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-admin

Yogesh,

Not only was my DuckDuckGo-fu failing me, I didn't even get to the
bottom of the page...

I had to make a few small tweaks since I'm on Traefikv2, but I'd be
happy to update the documentation. Thank you for putting me in the right
direction!

Glen

On 4/11/2022 9:11 PM, Yogesh Mahajan wrote:
> Hi Glen,
>
> Please refer to the last point at this
> <https://www.pgadmin.org/docs/pgadmin4/6.8/container_deployment.html>
> web-page for hosting pgadmin4 under subdirectory with Traefik.
> Here is example when pgadmin4 is hosted under /pgadmin4/
> docker run --name"pgadmin4" \
> -e"PGADMIN_DEFAULT_EMAIL=user(at)domain(dot)com" \
> -e"PGADMIN_DEFAULT_PASSWORD=SuperSecret" \
> -e"SCRIPT_NAME=/pgadmin4" \
> -l"traefik.frontend.rule=PathPrefix:/pgadmin4" \
> -d dpage/pgadmin4
>
> Thanks,
> Yogesh Mahajan
> EnterpriseDB
>
>
> On Tue, Apr 12, 2022 at 6:23 AM Glen Bakeman <gbakeman(at)live(dot)com> wrote:
>
> Hi everyone,
>
> I'm getting into containerized hosting, and I'd like to setup the
> pgAdmin docker container with a reverse proxy (Traefik). Traefik
> supports Path Prefix proxying for services (i.e, I'd like to access
> pgAdmin at host.example.com/pgadmin/
> <http://host.example.com/pgadmin/>). The issue seems to be that
> pgAdmin automatically rewrites requests to host.example.com/login
> <http://host.example.com/login>, which
> breaks the proxy.
>
> I can't seem to find any options that allow us to specify the web
> path
> pgAdmin uses, from the perspective of configuring the docker
> container.
> Can anyone please confirm this?
>
> Thanks in advance,
>
> Glen
>
>
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Khushboo Vashi 2022-04-13 09:56:12 [pgAdmin4][Patch] - RM #7026 - Browser panel is not completely viewable
Previous Message Akshay Joshi 2022-04-12 11:02:08 pgAdmin 4 commit: 1) Fixed an issue where the Schema Diff Check icon be

Browse pgsql-admin by date

  From Date Subject
Next Message Glen Bakeman 2022-04-13 18:40:47 Re: pgAdmin Docker container: specify web URL path prefix?
Previous Message Scott Ribe 2022-04-12 19:50:28 Re: regarding PG on ZFS performance