| From: | Yogesh Mahajan <yogesh(dot)mahajan(at)enterprisedb(dot)com> |
|---|---|
| To: | Glen Bakeman <gbakeman(at)live(dot)com> |
| Cc: | pgsql-admin(at)lists(dot)postgresql(dot)org |
| Subject: | Re: pgAdmin Docker container: specify web URL path prefix? |
| Date: | 2022-04-12 04:11:14 |
| Message-ID: | CAMa=N=NBvJv9vtCPz67a4jEP57ioVJwfTvscKXpA3JNidC-pKw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers pgsql-admin |
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/) The issue seems to be that
> pgAdmin automatically rewrites requests to 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
>
>
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Akshay Joshi | 2022-04-12 11:02:08 | pgAdmin 4 commit: 1) Fixed an issue where the Schema Diff Check icon be |
| Previous Message | Glen Bakeman | 2022-04-12 00:50:50 | pgAdmin Docker container: specify web URL path prefix? |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Holger Jakobs | 2022-04-12 06:31:15 | Re: set autocommit only for select statements |
| Previous Message | Mladen Gogala | 2022-04-12 01:53:59 | Re: set autocommit only for select statements |