2026-05-23 23:50:21 +00:00
|
|
|
# BSB runtime configuration — template for Docker builds.
|
2026-05-09 23:09:13 +00:00
|
|
|
#
|
2026-05-23 23:50:21 +00:00
|
|
|
# Placeholders (${VAR}) are replaced by envsubst during docker build.
|
|
|
|
|
# Set values via Coolify build args or docker build --build-arg.
|
2026-05-09 23:09:13 +00:00
|
|
|
#
|
2026-05-23 23:50:21 +00:00
|
|
|
# For native (non-Docker) installs, copy to sec-config.yaml and
|
|
|
|
|
# replace placeholders with actual values.
|
2026-05-09 23:09:13 +00:00
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
observable:
|
|
|
|
|
observable-default:
|
|
|
|
|
plugin: observable-default
|
|
|
|
|
enabled: true
|
|
|
|
|
config: {}
|
|
|
|
|
events:
|
|
|
|
|
events-default:
|
|
|
|
|
plugin: events-default
|
|
|
|
|
enabled: true
|
|
|
|
|
services:
|
|
|
|
|
service-store:
|
|
|
|
|
plugin: service-store
|
|
|
|
|
enabled: true
|
|
|
|
|
config:
|
2026-05-23 23:50:21 +00:00
|
|
|
driver: ${BF_DB_DRIVER:-postgres}
|
2026-05-09 23:09:13 +00:00
|
|
|
sqlitePath: /var/lib/betterframe/betterframe.db
|
2026-05-23 23:50:21 +00:00
|
|
|
pgHost: ${BF_PG_HOST:-postgres}
|
|
|
|
|
pgPort: ${BF_PG_PORT:-5432}
|
|
|
|
|
pgDatabase: ${BF_PG_DATABASE:-betterframe}
|
|
|
|
|
pgUser: ${BF_PG_USER:-betterframe}
|
|
|
|
|
pgPassword: ${BF_PG_PASSWORD:-betterframe}
|
|
|
|
|
pgPoolMax: ${BF_PG_POOL_MAX:-10}
|
2026-05-09 23:09:13 +00:00
|
|
|
|
refactor: collapse 6 non-service plugins into shared modules
BSB plugins should be actual services (own port, lifecycle, resource
ownership). Moved secrets, auth, pairing, bundle, nodered-bridge, and
cec-relay from plugin folders to shared modules under server/src/shared/.
4 BSB plugins remain: service-store, service-admin-http,
service-api-http, service-coordinator-ws.
service-admin-http now initializes secrets + auth as plain modules in
init() using the store repo from the plugin-registry singleton. No
more setSiblings() hack or inter-plugin wiring.
sec-config.yaml updated: secrets/auth config moved into
service-admin-http, pairing config into service-api-http, nodered
config into service-coordinator-ws.
2026-05-10 00:29:25 +00:00
|
|
|
service-admin-http:
|
|
|
|
|
plugin: service-admin-http
|
2026-05-09 23:09:13 +00:00
|
|
|
enabled: true
|
|
|
|
|
config:
|
2026-05-23 22:03:45 +00:00
|
|
|
host: 0.0.0.0
|
refactor: collapse 6 non-service plugins into shared modules
BSB plugins should be actual services (own port, lifecycle, resource
ownership). Moved secrets, auth, pairing, bundle, nodered-bridge, and
cec-relay from plugin folders to shared modules under server/src/shared/.
4 BSB plugins remain: service-store, service-admin-http,
service-api-http, service-coordinator-ws.
service-admin-http now initializes secrets + auth as plain modules in
init() using the store repo from the plugin-registry singleton. No
more setSiblings() hack or inter-plugin wiring.
sec-config.yaml updated: secrets/auth config moved into
service-admin-http, pairing config into service-api-http, nodered
config into service-coordinator-ws.
2026-05-10 00:29:25 +00:00
|
|
|
port: 18080
|
2026-05-09 23:09:13 +00:00
|
|
|
dataDir: /var/lib/betterframe
|
2026-05-23 22:03:45 +00:00
|
|
|
sessionIdleSeconds: 43200
|
|
|
|
|
sessionMaxSeconds: 2592000
|
2026-05-09 23:09:13 +00:00
|
|
|
loginLockoutThreshold: 8
|
2026-05-23 22:03:45 +00:00
|
|
|
loginLockoutSeconds: 900
|
|
|
|
|
argon2Memory: 65536
|
2026-05-09 23:09:13 +00:00
|
|
|
argon2TimeCost: 3
|
|
|
|
|
argon2Parallelism: 2
|
2026-05-10 00:55:21 +00:00
|
|
|
cookieName: betterframe_session
|
|
|
|
|
totpIssuer: BetterFrame
|
2026-05-23 23:50:21 +00:00
|
|
|
noderedUrl: ${BF_NODERED_URL:-http://nodered:1880}
|
|
|
|
|
selfUrl: ${BF_SELF_URL:-http://server:18080}
|
2026-05-23 11:22:44 +00:00
|
|
|
systemdCredsDir: ""
|
2026-05-23 23:50:21 +00:00
|
|
|
firmwareSigningKey: "${BF_FIRMWARE_SIGNING_KEY:-}"
|
|
|
|
|
firmwareImportApiKey: "${BF_FIRMWARE_IMPORT_API_KEY:-}"
|
|
|
|
|
otaImportApiKey: "${BF_OTA_IMPORT_API_KEY:-}"
|
2026-05-09 23:09:13 +00:00
|
|
|
|
|
|
|
|
service-api-http:
|
|
|
|
|
plugin: service-api-http
|
|
|
|
|
enabled: true
|
|
|
|
|
config:
|
2026-05-23 22:03:45 +00:00
|
|
|
host: 0.0.0.0
|
2026-05-09 23:09:13 +00:00
|
|
|
port: 18081
|
2026-05-23 22:03:45 +00:00
|
|
|
codeTtlSeconds: 600
|
2026-05-10 01:12:07 +00:00
|
|
|
dataDir: /var/lib/betterframe
|
|
|
|
|
argon2Memory: 65536
|
|
|
|
|
argon2TimeCost: 3
|
|
|
|
|
argon2Parallelism: 2
|
2026-05-23 22:03:45 +00:00
|
|
|
cookieName: betterframe_session
|
|
|
|
|
totpIssuer: BetterFrame
|
2026-05-23 23:50:21 +00:00
|
|
|
noderedUrl: ${BF_NODERED_URL:-http://nodered:1880}
|
|
|
|
|
mqttUrl: "${BF_MQTT_URL:-}"
|
|
|
|
|
mqttUsername: "${BF_MQTT_USERNAME:-}"
|
|
|
|
|
mqttPassword: "${BF_MQTT_PASSWORD:-}"
|
|
|
|
|
mqttTopicPrefix: ${BF_MQTT_TOPIC_PREFIX:-betterframe}
|
2026-05-09 23:09:13 +00:00
|
|
|
|
|
|
|
|
service-coordinator-ws:
|
|
|
|
|
plugin: service-coordinator-ws
|
|
|
|
|
enabled: true
|
|
|
|
|
config:
|
2026-05-23 22:03:45 +00:00
|
|
|
host: 0.0.0.0
|
2026-05-09 23:09:13 +00:00
|
|
|
port: 18082
|
2026-05-10 13:35:47 +00:00
|
|
|
dataDir: /var/lib/betterframe
|
|
|
|
|
argon2Memory: 65536
|
|
|
|
|
argon2TimeCost: 3
|
|
|
|
|
argon2Parallelism: 2
|
2026-05-23 22:03:45 +00:00
|
|
|
cookieName: betterframe_session
|
|
|
|
|
totpIssuer: BetterFrame
|
2026-05-23 23:50:21 +00:00
|
|
|
noderedUrl: ${BF_NODERED_URL:-http://nodered:1880}
|