Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Nginx Proxy Manager

Open IrateTurkey opened this issue 2 years ago • 4 comments

There was a closed issue that seemed unrelated (and I tired all the things in there) so I figured I'd open a new issue.

I just set up StirlingPDF and it works great until I stick it behind Nginx Proxy Manager.

Some site functionality works like URL to PDF, but I can't seem to load a PDF via uploading.
The "default" PDF when loading View PDF doesn't load while behind NPM but loads just fine when visiting direct.

PDF multi tool doesn't seem to upload a file behind NPM but works as expected when loading direct.

I tried a few of the configs listed in #14 but nothing worked. Am I missing something?

IrateTurkey avatar Nov 01 '23 05:11 IrateTurkey

Any errors on screen or in Dev console ? (F12)

Frooodle avatar Nov 01 '23 09:11 Frooodle

I've got the same problem

Dev console: Refused to execute script from 'https://url.url/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. app.js:160 Uncaught TypeError: Cannot read properties of undefined (reading 'PromiseCapability') at Object.defineProperty.value (app.js:160:30) at webpack_require (viewer.js:223:8) at Object.defineProperty.value (genericcom.js:18:1) at webpack_require (viewer.js:223:8) at viewer.js:223:8 at viewer.js:223:8 at viewer.js:223:8

davimrs avatar Nov 01 '23 12:11 davimrs

So this is weird. I came back to see if there's any console errors, but it works as expected now.
I changed nothing. I'll leave it open since the person above me seems to have issues, but I have none.

IrateTurkey avatar Nov 02 '23 18:11 IrateTurkey

Hey, I just stumbled across this issue, as I had issues with Nginx Proxy Manager too. The problem could be resolved for me: It seems like the issue is my activation of the NPM features in the settings of the proxy host for Stirling PDF: I disabled "Cache Assets", "Block common exploits" and "Websocket support" and now it works as expected. Before, I could not upload PDFs on some sites like "Sign PDF". I did not check which of these option specifically cause the issue but I thought I'll let other people know as I spent quite a bit of time debugging this.

I also had this problem, and I want to add that only by disabling in NPM "Cache Assets" the problem of loading subpages such as "View PDF" or uploading files in "Multitool" no longer appears, it is not necessary to disable "Block Common Exploits" which is a recommended security measure in a Reverse Proxy. Cheers and continuing with this amazing web platform.

NexusEFR avatar Mar 22 '24 17:03 NexusEFR