monicahq / monica

Personal CRM. Remember everything about your friends, family and business relationships.
https://beta.monicahq.com
GNU Affero General Public License v3.0
21.61k stars 2.16k forks source link

Monica has no css or formatting to page when accessed via reverse proxy after most recent release (docker + caddy v2) #6101

Open kavemang opened 2 years ago

kavemang commented 2 years ago

Describe the bug After the Feb release (I think) monica no longer has formatting when accessed via reverse proxy, if I access directly on LAN the formatting and web page looks normal, when accessed via reverse proxy (caddy v2) it shows as a stack of text and buttons without organization to the page or css style.

Screenshots Capture

Additional context Monica is running from inside docker, reverse proxy (caddy v2) is on a separate machine, everything worked normally before feb release

lyonzy commented 2 years ago

Same for me, it's blocked when using HTTPS because the stylesheet is loaded over http. image

Even though APP_URL is set correctly to HTTPS: image

lyonzy commented 2 years ago

Ah ok, some other issues (https://github.com/monicahq/monica/issues/5954) mentioned setting APP_TRUST_PROXIES=* (typo for APP_TRUSTED_PROXIES). Setting both of these in my .env file has fixed it (and presumably will remain fixed when https://github.com/monicahq/monica/pull/5955 gets merged).