pressbooks / pb-mathjax

A replacement for wp.com/latex.php but instead of LaTeX, it uses MathJax.
GNU General Public License v3.0
4 stars 1 forks source link

Mixed Content/SSL Errors #22

Open twelch555 opened 4 years ago

twelch555 commented 4 years ago

Hi, we are running a self-hosted Pressbooks server with fairly standard SSL/TLS encryption. The express server for pb-mathjax is running unencrypted and we are getting mixed content errors and latex is not rendering.

All is fine with the pb-mathjax server, a request to the server with Postman correctly returns rendered latex.

Before I started in on reconfiguring the pb-mathjax server for https I thought I would check in and see if anyone else has already done this. If I do get it sorted myself I'll contribute the code changes back for usage or documentation purposes.

Thanks for the great work, many of our faculty are chomping at the bit to start using it.

Troy

twelch555 commented 4 years ago

Okay, this seems to be working:

https://github.com/twelch555/pb-mathjax/commit/bbad770c8ac8c1eb80236386b2751b06f441c37d#