docker-ojs icon indicating copy to clipboard operation
docker-ojs copied to clipboard

HTML is built with http and https references and I get a "Mixed content" message

Open marcbria opened this issue 11 months ago • 0 comments

It usually happens when you are behind a reverse proxy and front is httpS, but your container is running as http.

Issue is explained/reported in different posts:

  • https://forum.pkp.sfu.ca/t/ojs-3-2-0-ojs-generates-protocol-relative-urls-in-notification-e-mails/59688/17?u=marc
  • https://github.com/pkp/pkp-lib/issues/6851

Here ther is a detailed list of solutions:

  • https://forum.pkp.sfu.ca/t/installing-using-docker-compose-and-portainer/84839/4?u=marc

Easiest one (tested on ojs 3.3) is adding this to your virtual-host:

SetEnvIf X-Forwarded-Proto "https" HTTPS=on

Probably would be nice to document this in readme?

marcbria avatar Mar 08 '24 13:03 marcbria