jazzband / django-revproxy

Reverse Proxy view that supports all HTTP methods, Diazo transformations and Single Sign-On.
Mozilla Public License 2.0
305 stars 118 forks source link

Emitting original path #179

Closed Crer-lu closed 11 months ago

Crer-lu commented 11 months ago

I am using django-revproxy to proxy localhost:8000/jupyter and set its upstream to localhost:8888 which is a jupyter container but the result is that there is some requests that dont work because when it will be some requests to 'localhost:8000/static' localhost:8000/lab and so on. For the reason that these requests are not be proxyed well, so the website in the frontend is not be visualized. I want to know whats the problem and if i want to pull request, where can i start to work? Thanks!

andruten commented 11 months ago

Hi @Crer-lu!

Thanks for posting the issue. I think this is because you are serving Django using runserver and /static url is served by Django. You could prepend a path segment before the static or simply use another path for your static files.

Crer-lu commented 11 months ago

i have found another solution that i overwrite the get_upstream funtion to realize it, thank you very much!