Use https instead of http in urls in templates for static files

180 Views Asked by At

Currently we are using the default wirecloud template. But sinde we enabled SSL and redirect every request to the ssl port I would love to change the urls of static ressources to start with https to avoid mixed content warnings.

Is there a simple way to change the urls to always start wit hhttps instead of http?

1

There are 1 best solutions below

0
On BEST ANSWER

That's done automatically, except if WireCloud is behind a proxy (so requests comes using HTTP instead of HTTPS). In those cases you can force WireCloud to use https links by adding this line into the settings.py file:

FORCE_PROTO = "https"

See this link for more info.