You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Not a
starlette_adminissue I believe, but might be useful if you use newer versions of fastapi that uses their newish cli.I followed FastAPI's deployment guide with some tweaks, but mostly following the backend docker setup.
For whatever reason the cli
--proxy-headersflag did not work withstarlette_admin. It workd with a regular api that you develop with fastapi though.Instead, I deployed using uvicorn and it worked (so far at least!).
In summary:
["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "8002"]CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8002", "--proxy-headers", "--forwarded-allow-ips", "*"]Beta Was this translation helpful? Give feedback.
All reactions