Skip to content

Add a "base_url" parameter to serve() to lop off route paths sent in from proxy servers? #173

@bdklahn

Description

@bdklahn

Thanks for this package! It's very nice and useful!

We have a setup whereby certain routes (handled by an nginx proxy server) can lead to an ad-hoc service on cluster node routes (e.g. "<host>/node/<hostname>/<port>").
Users can, for example, get slurm allocation to run a Jupyter Lab session. But the proxy server seems to pass the entire ref url path to the listener service. Jupyter Lab has a "base_url" config parameter to deal with this.
The Pluto.jl folks were nice enough to add that to the "Pluto.run()" command.
JuliaPluto/Pluto.jl#2225
JuliaPluto/Pluto.jl@22be5d0

I wonder if that would be easy enough to do here?

https://github.com/tlienart/LiveServer.jl/blob/9c4f0f18d8e023293ef78915609f707d48027dc0/src/server.jl#L579-L590

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions