Interesting side effect:
I tried using the app for iPhone and Mac.
Both are working thru the reverse proxy.
When I try to use the browser I am getting the grey screen.
I’m not great with nginx proxy, i’ve never really played with it. The only thing I can advise here is that it looks like the system is trying to resolve the js libraries from a rather weird path.
/var/www/
It looks like the vhost for this site is pointing to the root directory /var/ww rather than the diretory of the invoice ninja /public folder?
I am getting more and more confused. Now I can get the login screen and log into the webpage thru a browser. But on the reserve proxy there are errors in the log file.
2023/02/06 09:21:43 [error] 40535#40535: *312522 open() “/var/www/js/pdf.min.js” failed (2: No such file or directory), client: 192.168.1.153, server: www.demo.com, request: “GET /js/pdf.min.js HTTP/1.1”, host: “www.demo.com”, referrer: “https://www.demo.com/ninja/”
2023/02/06 09:21:56 [error] 40536#40536: *312519 open() “/var/www/client/invoice/gmlftxh2mibgjs8b2srplgffpktrjboa/download_pdf” failed (2: No such file or directory), client: 192.168.1.153, server: www.demo.com, request: “GET /client/invoice/gmlftxh2mibgjs8b2srplgffpktrjboa/download_pdf HTTP/1.1”, host: “www.demo.com”, referrer: “https://www.demo.com/ninja/”
I noticed, that i can not open any PDFs in the App, too. Same error as above:
2023/02/06 09:30:52 [error] 40534#40534: *312777 open() “/var/www/client/invoice/gmlftxh2mibgjs8b2srplgffpktrjboa/download_pdf” failed (2: No such file or directory), client: 2.247.245.180, server: www.demo.com, request: “GET /client/invoice/gmlftxh2mibgjs8b2srplgffpktrjboa/download_pdf HTTP/1.1”, host: “www.demo.com”
Should i move invoiceninja to a subfolder on the local server?
Well, I created a new certificate and ninja is now running behind the reverse proxy.
I can open the app but noticed, that the pdf and company logo are not displayed. Searching around I found this strange behaviour: