kcal-app / kcal

the personal food nutrition journal
Mozilla Public License 2.0
295 stars 27 forks source link

HTTPS behind another reverse proxy #42

Closed thremilien closed 1 year ago

thremilien commented 2 years ago

Hello, I have deployed your app in a proxmox container and set it up behind a reverse proxy (nginx proxy manager) with SSL connection but when I go on the link, the CSS and the JS doesn't load... if I go directly on the ip adress this works perfectly. There is a screenshot of the chromium error logs in attached files. Can you help me ? unknown

cdubz commented 2 years ago

Hm yeah that kind of makes sense... the asset calls for those assets see HTTP so they create HTTP links instead of HTTPS because the app doesn't know about the proxy.

I haven't used this behind a proxy myself. Does anything in this article help? https://cylab.be/blog/122/using-https-over-a-reverse-proxy-in-laravel

thremilien commented 2 years ago

Hello, this isn't working :( I understood the problem but I don't find any solutions. I have tried the link you send me and another similar but anyone doesn't work. Let me know if you a solution ! I'm available if you need more informations about my setup