Start API without web-interface

We are using graphhopper via the API only and it would be super cool to disable the web UI. Is there any build-in way to do that?

Cheers, Georg

Hi Georg,

have a look at GHServer#start. There you will find the setup to server the index.html. I never tried this, but I would assume that you could change/delete some lines here. Also you could also delete the content of the webapp folder and insert your own index.html instead.

Best,
Robin

Perfekt… I just deleted the content of index.html… thx!

A potentially simpler solution is to change the config from its current default:

jetty.resourcebase=./web/src/main/webapp

Any pointers on how to disable the web UI in version 4.0? I would prefer a method that does not require source code changes.

I was looking for the same, is it possible to disable the maps/ endpoint with a setting in config.yml or in the command line used to start graphhopper? Thanks!

In general I would recommend to put graphhopper behind a proxy so that only the endpoints are exposed that you specify. I would always keep the /map endpoint as it is a good debugging view in case something goes wrong you can access it (directly without the proxy; e.g. investigating the routing graph). There are also no plans to make this configurable as it is rather easy to recompile without maps.