From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | rhuddbiz <rhuddbiz(at)gmail(dot)com> |
Cc: | pgAdmin Support <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: pgadmin4 running behind nginx |
Date: | 2017-04-03 08:29:16 |
Message-ID: | CA+OCxowC52YahBFAvZxD4ePvmRQbttknewLH1zWZkTfr-hHAMw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
On Sun, Apr 2, 2017 at 9:00 PM, rhuddbiz <rhuddbiz(at)gmail(dot)com> wrote:
> how can i specify a path for the python application behind nginx ? we want
> to enable security with our existing ssl cert . we have https://foo.com/
> and we want to forward https://foo.com/pgadmin/ to our python wrapper around
> pgadmin4. unfortunately, the naive approach does not work as the href links
> all appear to be absolute on the login page. i'm hoping for a simple env
> variable.
With Apache I just do something like the following, and it just works
(the underlying Flask framework figures out the path prefix
automatically):
WSGIDaemonProcess pgadmin processes=1 threads=25
WSGIScriptAlias /pgadmin4 /opt/pgAdmin4/web/pgAdmin4.wsgi
<Directory /opt/pgAdmin4/web>
WSGIProcessGroup pgadmin
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
I'm afraid I don't know nginx well enough to suggest specifics for that server.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | rhuddbiz | 2017-04-03 13:30:41 | Re: pgadmin4 running behind nginx |
Previous Message | rhuddbiz | 2017-04-02 20:00:32 | Re: pgadmin4 running behind nginx |