#
# Copyright 2018 Red Hat, Inc. and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# App configuration
app.region.country-codes=BE
app.routing.osm-dir=local/openstreetmap
app.routing.gh-dir=local/graphhopper
app.routing.osm-file=belgium-latest.osm.pbf

# OptaPlanner
optaplanner.solver.termination.spent-limit=1m

# Logging
logging.level.root=info
logging.level.org.optaplanner.core=info
logging.level.org.optaweb.vehiclerouting=info

# Datasource
# - using an embedded DB with relative path: http://h2database.com/html/features.html#embedded_databases
# - not closing the DB automatically: http://h2database.com/html/features.html#closing_a_database
spring.datasource.url=jdbc:h2:file:${app.persistence.h2-dir:./local/db}/vrp;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.hibernate.ddl-auto=update

# H2
# You can connect to H2 console and examine DB contents at http://localhost:8080/h2-console/.
# Don't forget to enter "JDBC URL: jdbc:h2:file:./local/db/vrp".
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
