pgadmin4 running behind nginx

From: jbiskofski <jbiskofski(at)gmail(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: pgadmin4 running behind nginx
Date: 2017-01-29 19:33:56
Message-ID: CAHpPzY6OmEKQ3eG=AUcuqyG7AqDQ+-AtDkCw+Z+v3VET54U_rQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

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 to be loaded because they are
linked through http instead of https.

login:1 Mixed Content: The page at '
https://REMOVED-BY-ME/login?next=/browser/browser.css' was loaded over
HTTPS, but requested an insecure stylesheet '
http://REMOVED-BY-ME/login?next=%2Fbrowser%2Fbrowser.css'. This request has
been blocked; the content must be served over HTTPS.

This is OK at the login page, but once I login, I get the eternal pgadmin
is loading screen and a lot more of these same errors in my browser console.

My question is, how can I tell pgadmin4 what its base URL is ?

Thank you.

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message stancs3 2017-01-30 01:23:35 4th Try: pgadmin4 install, launch fail
Previous Message gloox 2017-01-26 15:58:29 proargdefvals error