New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add base_url to notebook configuration options #1329
Comments
Some of the pieces are already in place, but more need to be done. We definitely should support this. |
OK, I got most of the way there in my alternate-url-prefix branch. The proxy configuration I need to run behind a firewall turns out to be a little more complicated than I hoped, but this is a server configuration things rather than anything to do with IPython per se. Should I issue a pull request with this? |
On Thu, Jan 26, 2012 at 3:27 PM, Andrew Straw
Great!
I have wondered how the WebSocket/proxy thing would work. Not too
Yes, please.
Brian E. Granger |
notebook - allow prefixes in URL path. This closes ipython#1329. The basic idea is to allow prefixes in the path served. (E.g. serve on http://localhost:8888/ipython/ instead of http://localhost:8888/ ) This is useful for running the ipython notebook behind a proxy serving other content at other URLs. In that case, one would also need to proxy the websockets. Also, clean up some static paths in our html/css files by using template function calls instead of hardcoded paths.
Hi,
(Apologies if this is already possible - I didn't find it anywhere.)
I'd like to serve my notebook behind a proxy server. For example, comsider nginx running on http://somewhere.com and serving all URLS matching the regex http://somewhere.com/ipython/astraw/(.*) by proxying them to http://localhost:8888/ipython/astraw/$1. In particular, this is proxying without URL rewriting.
To do this, I think two changes need to be made to the source: 1) change the handlers specified to tornado.web.Application so that they specify a base_url before their current name. 2) have all URL emitters (e.g. "/static/blah/blah") also have the base_url (e.g. emit base_url+"/static/blah/blah" instead).
Does this make sense? Is there a way to do it already? If so, I missed it after looking for some time, but apologies nevertheless.
Thanks for the notebook interface. I am dreaming big with this...
The text was updated successfully, but these errors were encountered: