config: fix wrong location of database config in config.example.yaml

This fixes configuration error `main: failed to load configuration: could not load configuration: no database source specified`
when booting clair with following Hello Heartbleed instruction.
This commit is contained in:
cynipe 2016-06-14 16:35:32 +09:00
parent bed3662e64
commit 4e818bb9c0

View File

@ -17,14 +17,14 @@ clair:
database:
# Database driver
type: pgsql
options:
# PostgreSQL Connection string
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
source:
# Number of elements kept in the cache
# Values unlikely to change (e.g. namespaces) are cached in order to save prevent needless roundtrips to the database.
cachesize: 16384
# PostgreSQL Connection string
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
source: "postgresql://postgres:password@postgres:5432?sslmode=disable"
# Number of elements kept in the cache
# Values unlikely to change (e.g. namespaces) are cached in order to save prevent needless roundtrips to the database.
cachesize: 16384
api:
# API server port