Add "base_url" option, to "up()" to lop off referrer route path sent in from proxy servers (e.g. nginx)?
#663 opened on Aug 2, 2023
Description
Thanks for creating Genie!!! It is very nicely designed and full-featured.
I apologize in advance if this is already (better) handled another way, which I may have missed (maybe there are already parameters which can be passed through to HTTP.jl, or something?)
We have a setup whereby certain routes (handled by an nginx proxy server) can lead to ad-hoc services on cluster node routes (/node//). Users can, for example, get a 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 (Jupyter server not knowing anything about the added route path). The Pluto.jl folks were nice enough to add that to the "Pluto.run()" command. https://github.com/fonsp/Pluto.jl/issues/2225 https://github.com/fonsp/Pluto.jl/pull/2227/commits/22be5d042cd29c2259fe666504025db82f203b4d
Is this something which might makes sense to add?
I am considering using Genie to spin up on-demand interactive presentation pages, maybe from some base/stock/template web app. Thanks!