owntracks / quicksetup

A (mostly) automated installer for OwnTracks Recorder, Frontend with MQTT and Let's Encrypt
https://owntracks.org/booklet/guide/quicksetup/
14 stars 4 forks source link

Map doesn't load: 'Blocked loading mixed active content' #60

Closed lgrn closed 1 week ago

lgrn commented 2 months ago

Hi,

I'm trying to set up owntracks behind a reverse proxy, when I open owntracks/frontend/ the map doesn't load and I can see this error in the browser console:

Blocked loading mixed active content “http://foo/owntracks/api/0/list”

I suspect this might be because I willingly configured quicksetup to run without an e-mail, because I don't want automatic cert renewals (the reverse proxy handles that), this means that the application is now listening on port 80, which is fine, but I guess this might also lead to the application having http links in HTML since it's unaware that https is actually being used.

Normally this is solved by some kind of configuration toggle that can let the application know that it's behind a reverse proxy, and that https links should be used throughout the application. Is anything like that available?

jpmens commented 2 months ago

You might need to tweak baseUrl in /usr/share/nginx/html/owntracks/frontend/config/config.js for your particular configuration, but please note this file is (currently) overwritten whenever you re-run ./bootstrap.sh.

jpmens commented 1 week ago

Closing as answered