Skip to content

Commit

Permalink
Updated harbor.yml for v2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stonezdj committed Dec 20, 2022
1 parent ce1e2dd commit a01a788
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions jobs/harbor/templates/config/harbor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ database:
max_idle_conns: 50
# The maximum number of open connections to the database. If it <= 0, then there is no limit on the number of open connections.
# Note: the default number of connections is 100 for postgres.
max_open_conns: 1000
max_open_conns: 900
# The maximum amount of time a connection may be reused. Expired connections may be closed lazily before reuse. If it <= 0, connections are not closed due to a connection's age.
# The value is a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
conn_max_lifetime: 5m
# The maximum amount of time a connection may be idle. Expired connections may be closed lazily before reuse. If it <= 0, connections are not closed due to a connection's idle time.
# The value is a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
conn_max_idle_time: 0
# The default data volume
data_volume: /data

Expand Down Expand Up @@ -103,11 +109,29 @@ trivy:
# It would work if all the dependencies are in local.
# This option doesn't affect DB download. You need to specify "skip-update" as well as "offline-scan" in an air-gapped environment.
offline_scan: <%= p("trivy.offline_scan") %>

# Comma-separated list of what security issues to detect. Possible values are `vuln`, `config` and `secret`. Defaults to `vuln`.
security_check: vuln
# insecure The flag to skip verifying registry certificate
insecure: false
# github_token The GitHub access token to download Trivy DB
#
# Anonymous downloads from GitHub are subject to the limit of 60 requests per hour. Normally such rate limit is enough
# for production operations. If, for any reason, it's not enough, you could increase the rate limit to 5000
# requests per hour by specifying the GitHub access token. For more details on GitHub rate limiting please consult
# https://developer.github.com/v3/#rate-limiting
#
# You can create a GitHub token by following the instructions in
# https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
#
# github_token: xxx
jobservice:
# Maximum number of job workers in job service
max_job_workers: <%= p("max_job_workers") %>

notification:
# Maximum retry count for webhook job
webhook_job_max_retry: 10

chart:
absolute_url: disabled

Expand Down Expand Up @@ -139,7 +163,7 @@ log:
port: <%= p("log_insight_port") %>
<%- end %>
#This attribute is for migrator to detect the version of the .cfg file, DO NOT MODIFY!
_version: 2.5.0
_version: 2.7.0

# UAA cert
<%- if p("auth_mode") == "uaa_auth" %>
Expand Down

0 comments on commit a01a788

Please sign in to comment.