Reverse proxy causes functionality loss

Self-hosted – CENTOS7 – PHP Version 7.3.16 – Inv Ninja ver: v4.5.18
Reverse proxy Caddy v1

It seems then if I use the site via reverse proxy most of IN is broken (not looks wise), things like the Dashboard do not show (see attached photo - top is via reverse proxy, bottom is direct to web server), and I cannot see created Customers, I cannot save Invoice drafts, etc.

using IN when I point directly to the webserver everything works as expected.

I’ve been searching for hours and haven’t come up with anything similar happening.

display issues

Caddy config:

 header / {
    # Enable HTTP Strict Transport Security (HSTS)
    Strict-Transport-Security "max-age=31536000;"
    # Enable cross-site filter (XSS) and tell browser to block detected attacks
    X-XSS-Protection "1; mode=block"
    # Disallow the site to be rendered within a frame (clickjacking protection)
    X-Frame-Options "DENY"
    # Prevent search engines from indexing (optional)
    X-Robots-Tag "none"
}

proxy / 10.10.1.8  {
    transparent

}

    tls {
    dns cloudflare
}

Maybe this will help:

https://github.com/invoiceninja/dockerfiles/issues/14#issuecomment-241860289

Unfortunately not - I’m using Apache/httpd

I am at a loss as to why running through the proxy causes this functionality loss - nothing in the logs, etc.

Another thing to check:

https://docs.invoiceninja.com/configure.html#using-a-reverse-proxy

yes I’ve added that to my .env as well - no dice

Sorry, out of ideas…

I hear ya… appreciate the help/info.

I’ll probably just end up going back to InvoicePlane at this point - it works without issues.

Haha… dig

All the best!

I was running mine behind NGiNX with no problems. I will add an update later with my config.