alabid / flylatex

FlyLatex: A Realtime Collaborative Environment (with a concurrent editor) in node-js.
766 stars 85 forks source link

SSL and flylatex with nginx #41

Open asazo opened 10 years ago

asazo commented 10 years ago

My team is currently running flylatex with nginx using a proxy from the app running in localhost:3000. Using https in nginx brings troubles when u want to see the preview (not download the pdf). My team has a minor experience with nodejs so we can't be sure what is going on there. While ussing ssl, login, documents operation and download works perfectly except for the preview.

I appreciate any help to this issue. Thanks for making this project.

alabid commented 10 years ago

Sorry for replying late. I'm still a student.

The problem is with pdf.js (from firefox) which is used to display the pdf within a web page. I have disabled the worker which has problems with cross-origin requests and SSL:

PDFJS.disableWorker = true;

and it still seems to work. Let me know if this fix works.