This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
config.api.example.yml
46 lines (39 loc) · 1.94 KB
/
config.api.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# The values specified here are the default values that Port Authority uses if no configuration file is specified or if
# the keys are not defined.
portauthority:
database:
# Database driver
type: pgsql
options:
# PostgreSQL Connection string
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
# This can be the same DB as the one used by Clair, or a different one
source: host=192.168.99.100 port=30607 user=postgres password=password sslmode=disable statement_timeout=60000
# Number of elements kept in the cache
# Values unlikely to change are cached in order to save prevent needless roundtrips to the database.
cachesize: 16384
api:
# API server port
port: 6100
# Health server port
# This is an unencrypted endpoint useful for load balancers to check the health of the port authority server.
healthport: 6101
# Deadline before an API request will respond with a 503
timeout: 900s
# Setting imagewebhookdefaultblock to true will set the imagewebhooks endpoint default behavior to block any images with
# policy violations.
# If it is set to false, a user can still enable the behavior by setting the portauthority-webhook annotation to true
imagewebhookdefaultblock: false
# URL of the Clair server that Port Authority sends its images/layers to for scanning
# If Clair is running in Minikube, change the path to the advertised service (e.g. http://clair-service:6100)
clairurl: http://192.168.99.100:32355
clairtimeout: 900
### Environment variables defined below are mapped to credentials used by the Kubernetes Crawler API (/v1/crawler/k8s)
### A 'Scan: true' flag will invoke their usage
k8scrawlcredentials:
- url: "docker.io" #basic auth is empty UN and PW
username: ""
password: ""
- url: "gcr.io" #basic auth is empty UN and PW
username: ""
password: ""