commuter icon indicating copy to clipboard operation
commuter copied to clipboard

Feature Request: Configurable context path or prefix URL

Open ricecooker opened this issue 3 years ago • 2 comments

By default commuter runs on http://hostname:4000/

Could we add a parameter such as COMMUTER_URL_PREFIX that could change the URL?

As an example if I were to do this:

export COMMUTER_URL_PREFIX=commuter/

Then commuter would respond to this: http://hostname:4000/commuter/

I have a build server with nginx in front that I'd like to host commuter so people can easily lookup their papermill jobs that run.

ricecooker avatar Aug 23 '21 22:08 ricecooker

Thanks for sharing this recommendation, @ricecooker! Are you interested in submitting a PR for this? Happy to point you to the right places.

captainsafia avatar Sep 02 '21 03:09 captainsafia

Sure, I'm open to exploring. NodeJS is not usually my cup of tea but I'm happy to try learn. I noticed some references to baseUrl in the codebase and this feature seems to already be on the roadmap (sorry!).

For anyone else needing this now, I found https://github.com/line/jnotebook_reader that does support this. I'd like to stick with nteract/commuter since we use papermill a lot.

ricecooker avatar Sep 07 '21 19:09 ricecooker