Repository navigation
Expand file tree
/
Copy pathcluster.sqlite.example.yaml
More file actions
39 lines (35 loc) · 1.69 KB
/
Copy pathcluster.sqlite.example.yaml
File metadata and controls
39 lines (35 loc) · 1.69 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
# AI48Home SQLite single-Home configuration.
# Copy this file to cluster.yaml to configure the database and node settings.
# Database configuration: SQLite
#
# Configure exactly one database backend; do not add a pgsql section.
# Without cluster.yaml, Home already uses ./home.db. Use this file when SQLite
# needs explicit node settings or a custom database path.
# SQLite supports only one active Home process per database. Multiple CPA nodes
# may connect to that Home. Multiple active Homes must use PostgreSQL.
#
# Active example: relative database path.
# Home creates the database file when it does not exist. Its parent directory
# must already exist and be writable by the Home process. Relative paths are
# resolved from the Home process working directory. The -sqlite-path flag
# overrides this value. Environment placeholders are not expanded.
sqlite:
path: "home.db"
# Alternative: absolute database paths.
# Replace path above with the appropriate value for the deployment.
# On Windows, use forward slashes to avoid YAML backslash escaping.
# path: "E:/AI48Home/data/home.db"
# With docker-compose.sqlite.yml, use the persisted Home data volume.
# path: "/AI48Home/data/home.db"
# Queries taking longer than this threshold are logged as slow SQL.
# Optional; defaults to "200ms". Uses Go duration syntax such as "1s".
slow-query-threshold: "200ms"
node:
# Public address advertised to CPA clients. Configure it so clients can reach this Home.
# external-ip: "203.0.113.10"
# Optional public port advertised to CPA clients when a reverse proxy changes the reachable port.
# external-port: 443
port: 8327
heartbeat-interval: "5s"
heartbeat-timeout: "20s"
event-poll-interval: "3s"