Giter VIP home page Giter VIP logo

Comments (3)

mmaeffert avatar mmaeffert commented on July 18, 2024

It just occured to me that pdf.min.js is never properly loaded and the GET request never receives an answer. Neither the nginx or the app container throw any error messages and the file in question has 777 permission granted by me. Manually executing the GET request is successful. Furthermore I found the following error:
asdadada

I also do not know why the file is requested via HTTP. When I change the env to REQUIRE_HTTPS=true, nothing works anymore.
In case it is needed, this is my Proxy Configuration:

<VirtualHost *:80>
        ServerName placeholder.de
        ProxyPreserveHost On
        ProxyRequests Off
        ServerAlias www.placeholder.de
        Redirect permanent / https://placeholder.de
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName placeholder.de
        ProxyPreserveHost On
        ProxyRequests Off
        ProxyPass / http://localhost:8001/
        ProxyPassReverse / http://localhost:8001/


Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/placeholder.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/placeholder.de/privkey.pem
</VirtualHost>
</IfModule>

from dockerfiles.

mmaeffert avatar mmaeffert commented on July 18, 2024

Allowing unsafe content and removing the redirection onto HTTPS, I now do not receive any error messages anymore.

I also ask myself why the file is requested via HTTP, instead of HTTPS, when the env variable is set accordingly.

Now when I create an invoice, the preview is working fine. But when looking at the PDF later, it is just blank:
image

Same result when downloading and opening seperately

from dockerfiles.

CaffeinatedTech avatar CaffeinatedTech commented on July 18, 2024

I'm facing the same problem. pdf.min.js is blocked because it is requested on http instead of https. I'm using the helm chart, with Caddy running reverse_proxy to it.

The PDF is created fine, and gets attached to the email just fine, but I can't view the PDF from within IN. I'm assuming the client portal has the same problem.

from dockerfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.