epoz / shmarql

SPARQL endpoint explorer
The Unlicense
15 stars 3 forks source link

Add a relocatable HTTP path prefix when proxying shmarql #23

Open epoz opened 3 months ago

epoz commented 3 months ago

Make more use of the SITE_URI config (or add another config option like eg. SITE_PATH) and use this everywhere that paths are being constructed, templates, links etc.

This will allow proxying behind a different path entirely when integrating with other systems.

For example: http://example.com/kg/shmarql is the front-end, and then we want to be able to tell the shmarql config to use /kg/ as the SITE_PATH, also for any static files etc.