2016-02-24 17:44:17 +00:00
|
|
|
# Copyright 2015 clair authors
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# The values specified here are the default values that Clair uses if no configuration file is specified or if the keys are not defined.
|
2016-03-09 19:50:08 +00:00
|
|
|
clair:
|
|
|
|
database:
|
2016-05-02 22:33:03 +00:00
|
|
|
# Database driver
|
|
|
|
type: pgsql
|
|
|
|
options:
|
|
|
|
# PostgreSQL Connection string
|
2016-06-07 16:58:24 +00:00
|
|
|
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
|
2017-02-07 20:03:22 +00:00
|
|
|
source: host=localhost port=5432 user=postgres sslmode=disable statement_timeout=60000
|
2016-02-24 17:44:17 +00:00
|
|
|
|
2016-05-02 22:33:03 +00:00
|
|
|
# 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
|
2017-08-18 22:25:54 +00:00
|
|
|
|
2017-07-26 23:22:29 +00:00
|
|
|
# 32-bit URL-safe base64 key used to encrypt pagination tokens
|
|
|
|
# If one is not provided, it will be generated.
|
|
|
|
# Multiple clair instances in the same cluster need the same value.
|
|
|
|
paginationkey:
|
2016-02-24 17:44:17 +00:00
|
|
|
|
2016-03-09 19:50:08 +00:00
|
|
|
api:
|
2017-08-18 15:34:19 +00:00
|
|
|
# v3 grpc/RESTful API server address
|
2017-09-20 07:49:38 +00:00
|
|
|
addr: "0.0.0.0:6060"
|
2017-07-26 23:22:29 +00:00
|
|
|
|
2017-08-18 15:34:19 +00:00
|
|
|
# Health server address
|
2016-03-09 19:50:08 +00:00
|
|
|
# This is an unencrypted endpoint useful for load balancers to check to healthiness of the clair server.
|
2017-08-18 15:34:19 +00:00
|
|
|
healthaddr: "0.0.0.0:6061"
|
2016-02-24 17:44:17 +00:00
|
|
|
|
2016-03-09 19:50:08 +00:00
|
|
|
# Deadline before an API request will respond with a 503
|
|
|
|
timeout: 900s
|
2016-02-24 17:44:17 +00:00
|
|
|
|
|
|
|
# Optional PKI configuration
|
|
|
|
# If you want to easily generate client certificates and CAs, try the following projects:
|
|
|
|
# https://github.com/coreos/etcd-ca
|
|
|
|
# https://github.com/cloudflare/cfssl
|
2015-12-15 16:36:06 +00:00
|
|
|
servername:
|
|
|
|
cafile:
|
|
|
|
keyfile:
|
|
|
|
certfile:
|
2016-03-09 19:50:08 +00:00
|
|
|
|
|
|
|
updater:
|
|
|
|
# Frequency the database will be updated with vulnerabilities from the default data sources
|
|
|
|
# The value 0 disables the updater entirely.
|
|
|
|
interval: 2h
|
2017-07-26 23:22:29 +00:00
|
|
|
enabledupdaters:
|
|
|
|
- debian
|
|
|
|
- ubuntu
|
|
|
|
- rhel
|
|
|
|
- oracle
|
|
|
|
- alpine
|
2019-01-14 19:39:46 +00:00
|
|
|
- suse
|
2016-03-09 19:50:08 +00:00
|
|
|
|
|
|
|
notifier:
|
|
|
|
# Number of attempts before the notification is marked as failed to be sent
|
|
|
|
attempts: 3
|
|
|
|
|
|
|
|
# Duration before a failed notification is retried
|
2016-05-11 22:13:00 +00:00
|
|
|
renotifyinterval: 2h
|
2016-03-09 19:50:08 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
# Optional endpoint that will receive notifications via POST requests
|
|
|
|
endpoint:
|
|
|
|
|
|
|
|
# Optional PKI configuration
|
|
|
|
# If you want to easily generate client certificates and CAs, try the following projects:
|
|
|
|
# https://github.com/cloudflare/cfssl
|
|
|
|
# https://github.com/coreos/etcd-ca
|
|
|
|
servername:
|
2017-07-26 23:22:29 +00:00
|
|
|
cafile:
|
|
|
|
keyfile:
|
|
|
|
certfile:
|
2016-04-12 17:51:05 +00:00
|
|
|
|
|
|
|
# Optional HTTP Proxy: must be a valid URL (including the scheme).
|
|
|
|
proxy:
|