Home Forums Support InvoiceNinja, Caddy and Nginx.

This topic contains 1 reply, has 2 voices, and was last updated by  efftron 1 week, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #21749


    Is anyone running a self-hosted InvoiceNinja on Nginx, but reversed proxy through Caddy?.
    Caddy handles all of my SSL certificates so I use it as the front-end to all of my web apps.

    Here’s the relevant configuration on my caddyfile:

    example.com:443 {
            proxy / {
            fastcgi /

    With these parameters, I can reach the home page but the page looks broken. None of the images and css elements are present, just a user and password box, and even when I type the credentials and hit enter it doesn’t do anything.

    Going directly to works fine, so I think the issue is with Caddy and not Nginx. Any help is appreciated.




    Bit late, but I ran into this today myself. No content was loading onto InvoiceNinja other than the index file because it’s secure over https, and everything else is over http, only visible after bypassing a mixed http/https content warning. I didn’t try logging in, but as no scripts were being parsed I’m sure it wouldn’t have worked.

    Including this in my .env file fixed it; (of course subbing in the IP InvoiceNinja’s nginx server will see Caddy traffic coming from):


    ..as it lets Invoice Ninja know there’s a reverse proxy.

    • This reply was modified 1 week, 5 days ago by  efftron.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Posted in: