I don't understand how root_url is supposed to work #1084
-
I tried to launch Pluto with
Pluto responds with If I try to access What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
What are you trying to do? |
Beta Was this translation helpful? Give feedback.
-
I think you are looking at this the other way around: Pluto is designed to work on any base URL, we make sure that all URLs are relative (asset imports, websocket, redirects, links, etc). This means that if you have an nginx proxy set up to serve pluto at, say The |
Beta Was this translation helpful? Give feedback.
-
Wow, you guys put the output above the input. That's pretty intriguing. :-) I've implemented a lot of online code environments and never thought of doing that. I wonder what other things you've done that I would have never thought of in a million years... |
Beta Was this translation helpful? Give feedback.
I think you are looking at this the other way around:
Pluto is designed to work on any base URL, we make sure that all URLs are relative (asset imports, websocket, redirects, links, etc). This means that if you have an nginx proxy set up to serve pluto at, say
runner.cocalc.com/ba9c94/port/pluto/
, then you can just go to that address and everything will work.The
root_url
setting does not change the server configuration, it only affects the message printed to the terminal, which is probably not relevant to you. When the project started, we needed to specify theroot_url
on custom proxies, just like with Jupyter, but we have found some tricks to avoid it altogether: you do not need to set …