Re: pgadmin4 running behind nginx

From: rhuddbiz <rhuddbiz(at)gmail(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: pgadmin4 running behind nginx
Date: 2017-04-03 13:30:41
Message-ID: 1491226241473-5953727.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

i don't think knowing nginx is the key to this. it's more of a general
question for any proxy setup that uses python to run pgadmin4. we are
launching pgadmin4 on localhost:5050, with a systemd file containing
/usr/bin/python3.5
/usr/local/lib/python3.5/dist-packages/pgadmin4/pgAdmin4.py

is there a magical incantation to get a param or env variable to python to
get the Flask framework to put a path in front of the root pgadmin app ?
right now, the pgadmin4 app is available at http://localhost:5050, need it
to be at http://localhost:5050/pgadmin/ . whatever solution is found will
be relevant to all non-apache proxy servers, so getting it out on the
mailing list / internet would be helpful :)

i guess another path would be to setup a uwsgi server in the systemd file,
and use ngx_http_uwsgi_module for proxying. but that won't be a generic
solution for other proxy servers.

--
View this message in context: http://www.postgresql-archive.org/pgadmin4-running-behind-nginx-tp5941547p5953727.html
Sent from the PostgreSQL - pgadmin support mailing list archive at Nabble.com.

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2017-04-03 15:23:37 Re: pgadmin4 running behind nginx
Previous Message Dave Page 2017-04-03 08:29:16 Re: pgadmin4 running behind nginx