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:
parent
bed3662e64
commit
4e818bb9c0
@ -17,14 +17,14 @@ clair:
|
|||||||
database:
|
database:
|
||||||
# Database driver
|
# Database driver
|
||||||
type: pgsql
|
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
|
# PostgreSQL Connection string
|
||||||
# Values unlikely to change (e.g. namespaces) are cached in order to save prevent needless roundtrips to the database.
|
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
|
||||||
cachesize: 16384
|
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:
|
||||||
# API server port
|
# API server port
|
||||||
|
Loading…
Reference in New Issue
Block a user