Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-05 Thread Dave Page
On Tue, Apr 4, 2017 at 11:36 PM, rhuddbiz wrote: > Dave, > > after installing > https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl > > i can't seem to find any filename matching the one you mentioned, that seems > strange to me. > web/pgadmin/__init__.py T

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-05 Thread rhuddbiz
Dave, after installing https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl i can't seem to find any filename matching the one you mentioned, that seems strange to me. web/pgadmin/__init__.py -- View this message in context: http://www.postgresql-archiv

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-04 Thread jbiskofski
this is how I got it to work : VHOST FILE == *server {* *listen *:443 ssl;* *server_name pg.YOURDOMAIN.com ;* * include /usr/local/nginx/conf/ssl.conf;* * include /usr/local/nginx/conf/proxies.conf;* * location / {* * proxy_pass http://pgad

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-04 Thread Dave Page
On Tue, Apr 4, 2017 at 12:19 AM, rhuddbiz wrote: > well, setting APPLICATION_ROOT did not work. i know i have the > config_local.py setup correctly because i am able to configure > DEFAULT_SERVER. i think i see where you came up with APPLICATION_ROOT param, > http://flask.pocoo.org/docs/0.12/confi

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-04 Thread rhuddbiz
well, setting APPLICATION_ROOT did not work. i know i have the config_local.py setup correctly because i am able to configure DEFAULT_SERVER. i think i see where you came up with APPLICATION_ROOT param, http://flask.pocoo.org/docs/0.12/config/. unfortunately, it looks like pgAdmin4.py does not mak

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-03 Thread Dave Page
On Mon, Apr 3, 2017 at 2:30 PM, rhuddbiz wrote: > 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/loca

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-03 Thread rhuddbiz
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 ther

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-03 Thread Dave Page
On Sun, Apr 2, 2017 at 9:00 PM, rhuddbiz 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. unfo

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-04-03 Thread rhuddbiz
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 l

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-02-01 Thread Dan Davis
Another trick here is to let the back-end know that it is https: proxy_set_header X-Forwarded-Proto https; On Wed, Feb 1, 2017 at 12:34 PM, jbiskofski wrote: > I Set up my nginx as Harshal suggested and this fixed the problem. Thanks > for the help! > > On Wed, Feb 1, 2017 at 3:37 AM, Dave Pag

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-02-01 Thread jbiskofski
I Set up my nginx as Harshal suggested and this fixed the problem. Thanks for the help! On Wed, Feb 1, 2017 at 3:37 AM, Dave Page wrote: > > > On Wed, Feb 1, 2017 at 10:20 AM, Ashesh Vashi < > ashesh.va...@enterprisedb.com> wrote: > >> On Wed, Feb 1, 2017 at 3:44 PM, Dave Page wrote: >> >>> On

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-02-01 Thread Dave Page
On Wed, Feb 1, 2017 at 10:20 AM, Ashesh Vashi wrote: > On Wed, Feb 1, 2017 at 3:44 PM, Dave Page wrote: > >> On Wed, Feb 1, 2017 at 10:11 AM, Harshal Dhumal >> wrote: >> > Hi, >> > >> > When I setup my machine with below server setup and without >> proxy_redirect I >> > got slightly different b

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-02-01 Thread Ashesh Vashi
On Wed, Feb 1, 2017 at 3:44 PM, Dave Page wrote: > On Wed, Feb 1, 2017 at 10:11 AM, Harshal Dhumal > wrote: > > Hi, > > > > When I setup my machine with below server setup and without > proxy_redirect I > > got slightly different behaviour. In my case all redirects were failing > > cause browser

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-02-01 Thread Dave Page
On Wed, Feb 1, 2017 at 10:11 AM, Harshal Dhumal wrote: > Hi, > > When I setup my machine with below server setup and without proxy_redirect I > got slightly different behaviour. In my case all redirects were failing > cause browser was redirecting all request to http while server (nginx) was > con

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-02-01 Thread Harshal Dhumal
Hi, When I setup my machine with below server setup and without proxy_redirect I got slightly different behaviour. In my case all redirects were failing cause browser was redirecting all request to http while server (nginx) was configure to serve only https. I didn't get any intermittent state lik

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-01-30 Thread Harshal Dhumal
-- *Harshal Dhumal* *Software Engineer* EnterpriseDB India: http://www.enterprisedb.com The Enterprise PostgreSQL Company On Mon, Jan 30, 2017 at 3:33 PM, Dave Page wrote: > Hi > > On Sun, Jan 29, 2017 at 7:33 PM, jbiskofski wrote: > > Hello everyone, > > > > I have installed pgadmin4 on apac

Re: [pgadmin-support] pgadmin4 running behind nginx

2017-01-30 Thread Dave Page
Hi On Sun, Jan 29, 2017 at 7:33 PM, jbiskofski wrote: > Hello everyone, > > I have installed pgadmin4 on apache 2.2 with mod_wsgi, and it seems to be > working correctly. > > The problem is I need to run nginx in front of it to enable https and > caching. When I try to access pgadmin with this se

[pgadmin-support] pgadmin4 running behind nginx

2017-01-29 Thread jbiskofski
Hello everyone, I have installed pgadmin4 on apache 2.2 with mod_wsgi, and it seems to be working correctly. The problem is I need to run nginx in front of it to enable https and caching. When I try to access pgadmin with this setup I get errors in the browser about some elements not being able t