Commit c9c92784 authored by DaGal's avatar DaGal

Minor fixes

- Set routing.ch.disabling_allowed=true in config for easier deployement
- Made GraphHopperServletModule read from the config file
parent f2f5cd1d
......@@ -55,7 +55,7 @@ public class GraphHopperServletModule extends ServletModule {
protected Map<String, String> params = new HashMap<String, String>();
public GraphHopperServletModule(CmdArgs args) {
this.args = args;
this.args = CmdArgs.readFromConfigAndMerge(args, "config", "graphhopper.config");
params.put("mimeTypes", "text/html,"
+ "text/plain,"
+ "text/xml,"
......
......@@ -76,7 +76,7 @@ prepare.min_one_way_network_size=200
# If enabled, allows a user to run flexibility requests even if speed mode is enabled. Every request then has to include a hint routing.ch.disable=true.
# Attention, non-CH route calculations take way more time and resources, compared to CH routing.
# A possible attacker might exploit this to slow down your service. Only enable it if you need it and with routing.maxVisitedNodes
# routing.ch.disabling_allowed=true
routing.ch.disabling_allowed=true
# If enabled, allows a user to run flexible mode requests even if the hybrid mode is enabled. Every such request then has to include a hint routing.lm.disable=true.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment