open-eats / OpenEats

:pizza: Self Hosted Recipe Management App :hamburger:
https://open-eats.github.io/
MIT License
669 stars 102 forks source link

Images Broken When Accessing Via Internet #158

Open mirrorhead-uk opened 3 years ago

mirrorhead-uk commented 3 years ago

Hi,

When I access my site from internet via a reverse proxy (separate from the docker one), my uploaded images do not load. When inspecting the element, I can see that the image url is my internal ip and port. Is there any way to alter the image urls?

ghost commented 2 years ago

Hi, I had this problem with my install as well. I was recently redoing my nginx config for unrelated reasons, using the digital ocean nginxconfig tool and somehow that fixed it. I barely know what I'm doing so unfortunately I can't offer more help but perhaps this can get you on the right track. Good luck!

sepulzera commented 1 year ago

You can find a sample nginx configuration in the OwnRecipes docs.

Additionally, make sure you set up the env variable HTTP_X_FORWARDED_PROTO=true.

If this doesn't work, perhaps there is a NODE_* env variable not set up correctly.