FastAPI-Panel icon indicating copy to clipboard operation
FastAPI-Panel copied to clipboard

Proper protection of back-end

Open jwmelto opened this issue 2 years ago • 3 comments

Hi. I think this project is the foundation of the FastAPI integration tutorial, which I just completed. The problem with it is that it assumes the Panel server is visible by the web clients. That is, the document that FastAPI (or uvicorn) serves to the browser has URLs that point back to Panel (http://127.0.0.1:5000/app)

I need my FastAPI application to proxy Panel content, not simply re-direct to another address. The fundamental use case is a server running behind a firewall.

Is there a different way to serve the Panel content that doesn't require the browser hitting the Panel server process directly?

jwmelto avatar Mar 23 '23 19:03 jwmelto

@jwmelto have you found a solution?

dude0001 avatar Apr 18 '23 00:04 dude0001

@jwmelto have you found a solution?

No

jwmelto avatar Apr 18 '23 06:04 jwmelto

Hi,

Thanks for raising this issue @jwmelto I am not able to make this work anywhere outside the local machine. Any ideas how this may happen @t-houssian

Thanks, Sam

samiit avatar Jul 10 '23 12:07 samiit