open-eats / OpenEats

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

Generate correct absolute URLs in openeats-api #144

Closed XiMMiX closed 10 months ago

XiMMiX commented 3 years ago

The openeats-api generates absolute URLs for uploaded images. Without USE_X_FORWARDED_HOST it uses the IP and port gunicorn runs on (127.0.0.1:5210) instead of the fqdn of the reverse proxy for these URLs.

This fixes the following issue in the openeats -web repo: https://github.com/open-eats/openeats-web/issues/56