gbv / jskos-proxy

HTTP proxy to serve JSKOS objects
https://uri.gbv.de/terminology/
MIT License
3 stars 2 forks source link

Add web proxy mounting at ROOT for testing #8

Closed nichtich closed 1 year ago

nichtich commented 1 year ago

For local testing with a ROOT such as /terminology/, the service from localhost:3555 must be mounted at $HOST/terminology/. I use an additional web server to do so, but this could also be integrated into server.js.

stefandesu commented 1 year ago

For me, it works if I just don't set ROOT. It will then proxy the /terminology/ subpath of uri.gbv.de as well. Maybe not the intended solution, but it seems to be working as expected for me.

nichtich commented 1 year ago

Without setting ROOT

We could change this lines to serve assets from $ROOT and show an error message at / when $ROOT is set. HTTP Proxy is then optional, e.g.

 ProxyPass /terminology/ http://localhost:3555/terminology/
 ProxyPassReverse /terminology/ http://localhost:3555/terminology/
nichtich commented 1 year ago

Configuration and mounting has been refactored (see README).