-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfig-git.yaml
More file actions
73 lines (62 loc) · 1.91 KB
/
config-git.yaml
File metadata and controls
73 lines (62 loc) · 1.91 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
63
64
65
66
67
68
69
70
71
72
73
# Example configuration for syncing from the ToolHive Git repository
#
# This configuration pulls registry data from the official ToolHive repository
# and syncs it to the local storage every 30 minutes.
#
# Usage:
# thv-registry-api serve --config examples/config-git.yaml
# Sources configuration (can have multiple sources)
sources:
- name: toolhive
# Git repository configuration
git:
# Repository URL (HTTP/HTTPS/SSH)
repository: https://github.com/stacklok/toolhive-catalog.git
# Branch to use (mutually exclusive with tag and commit)
branch: main
# Alternative: Use a specific tag
# tag: v1.0.0
# Alternative: Use a specific commit SHA
# commit: abc123def456
# Path to registry file within the repository
path: pkg/catalog/toolhive/data/registry-legacy.json
# Per-registry automatic synchronization policy
syncPolicy:
# Sync interval (valid duration: 1m, 5m, 30m, 1h, 24h, etc.)
interval: "30m"
registries:
- name: default
sources: ["toolhive"]
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
sslMode: require
# Optional: Filter configuration to include/exclude specific servers
# filter:
# # Name-based filtering
# names:
# # Only include servers matching these patterns (glob syntax)
# include:
# - "stacklok/*"
# - "official/*"
# # Exclude servers matching these patterns
# exclude:
# - "*/deprecated"
#
# # Tag-based filtering
# tags:
# # Only include servers with these tags
# include:
# - "production"
# - "stable"
# # Exclude servers with these tags
# exclude:
# - "experimental"
# - "beta"