-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfig-file.yaml
More file actions
62 lines (55 loc) · 1.73 KB
/
config-file.yaml
File metadata and controls
62 lines (55 loc) · 1.73 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Example configuration for reading from a local file
#
# This configuration reads registry data from a local JSON file on the filesystem.
# This is useful for:
# - Testing and development
# - Reading from mounted volumes (e.g., ConfigMaps mounted as files)
# - Pre-downloaded or statically provided registry data
#
# Usage:
# thv-registry-api serve --config examples/config-file.yaml
# Sources configuration (can have multiple sources)
sources:
- name: local-file
# Local file configuration
file:
# Path to the registry.json file (absolute or relative)
# Can be a mounted ConfigMap, downloaded file, or any JSON file
path: ./data/registry.json
# Per-registry automatic synchronization policy
syncPolicy:
# Sync interval - how often to check if the file has changed
# For local files, you can use shorter intervals
interval: "5m"
# Optional: Per-registry filter configuration to include/exclude specific servers
# filter:
# # Name-based filtering
# names:
# include:
# - "official/*"
# - "stacklok/*"
# exclude:
# - "*/deprecated"
#
# # Tag-based filtering
# tags:
# include:
# - "production"
# - "stable"
# exclude:
# - "experimental"
registries:
- name: default
sources: ["local-file"]
auth:
mode: anonymous
# PostgreSQL database configuration (required)
# Passwords are managed via PostgreSQL's pgpass file (~/.pgpass or $PGPASSFILE)
# See: https://www.postgresql.org/docs/current/libpq-pgpass.html
database:
host: localhost
port: 5432
user: thv_user
database: toolhive_registry
# For development, disable SSL (NOT for production!)
sslMode: disable