polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Add the ability to run Polaris on some HTTP root path

Open johnflan opened this issue 2 years ago • 2 comments

Would it be possible to optionally define a root path component so http://192.168.0.2:5050/#/browse becomes http://192.168.0.2:5050/<DEFINED_PATH>/#/browse

This means it is easier to host this service on a shared URL with other services.

Vaultwarden for example calls this alternate base dir - https://github.com/dani-garcia/vaultwarden/wiki/Using-an-alternate-base-dir

johnflan avatar Dec 03 '22 20:12 johnflan

Heya @johnflan

Are you planning on having the polaris executable also serving <SOME_OTHER_PATH>/application_2? Because you already have a unique URI component in the listening TCP port (5050) that can identify the polaris URL.

I have apache reverse proxy in front of polaris to get the URL that I desire.

-m

mzagrabe avatar Dec 03 '22 20:12 mzagrabe

yeah I do run other apps on the same host, it can be resolved with URL rewriting but its a bit messy

johnflan avatar Dec 03 '22 21:12 johnflan

Not planning to implement this, as it makes implementing clients more complex and can be handled w/ reverse proxy setups.

agersant avatar Jul 14 '24 02:07 agersant