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.
|
2026-05-24 00:28:09 +00:00
|
|
|
# Defaults come from Dockerfile ARG declarations, not from this file.
|
|
|
|
|
# Set overrides 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
|
2026-05-24 00:28:09 +00:00
|
|
|
# replace ${VAR} 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:
|
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:
|
2026-05-24 00:24:08 +00:00
|
|
|
package: betterframe
|
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
|
|
|
plugin: service-admin-http
|
2026-05-09 23:09:13 +00:00
|
|
|
enabled: true
|
|
|
|
|
config:
|
2026-05-24 00:48:32 +00:00
|
|
|
db:
|
2026-05-24 03:12:53 +00:00
|
|
|
host: ${BF_PG_HOST}
|
|
|
|
|
port: ${BF_PG_PORT}
|
|
|
|
|
database: ${BF_PG_DB}
|
|
|
|
|
user: ${BF_PG_USER}
|
|
|
|
|
password: ${BF_PG_PASSWORD}
|
|
|
|
|
poolMax: ${BF_PG_POOL_MAX}
|
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-24 00:28:09 +00:00
|
|
|
noderedUrl: ${BF_NODERED_URL}
|
|
|
|
|
selfUrl: ${BF_SELF_URL}
|
2026-05-23 11:22:44 +00:00
|
|
|
systemdCredsDir: ""
|
2026-05-24 00:28:09 +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:
|
2026-05-24 00:24:08 +00:00
|
|
|
package: betterframe
|
2026-05-09 23:09:13 +00:00
|
|
|
plugin: service-api-http
|
|
|
|
|
enabled: true
|
|
|
|
|
config:
|
2026-05-24 00:48:32 +00:00
|
|
|
db:
|
2026-05-24 03:12:53 +00:00
|
|
|
host: ${BF_PG_HOST}
|
|
|
|
|
port: ${BF_PG_PORT}
|
|
|
|
|
database: ${BF_PG_DB}
|
|
|
|
|
user: ${BF_PG_USER}
|
|
|
|
|
password: ${BF_PG_PASSWORD}
|
|
|
|
|
poolMax: ${BF_PG_POOL_MAX}
|
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-24 00:28:09 +00:00
|
|
|
noderedUrl: ${BF_NODERED_URL}
|
|
|
|
|
mqttUrl: "${BF_MQTT_URL}"
|
|
|
|
|
mqttUsername: "${BF_MQTT_USERNAME}"
|
|
|
|
|
mqttPassword: "${BF_MQTT_PASSWORD}"
|
|
|
|
|
mqttTopicPrefix: ${BF_MQTT_TOPIC_PREFIX}
|
2026-05-09 23:09:13 +00:00
|
|
|
|
|
|
|
|
service-coordinator-ws:
|
2026-05-24 00:24:08 +00:00
|
|
|
package: betterframe
|
2026-05-09 23:09:13 +00:00
|
|
|
plugin: service-coordinator-ws
|
|
|
|
|
enabled: true
|
|
|
|
|
config:
|
2026-05-24 00:48:32 +00:00
|
|
|
db:
|
2026-05-24 03:12:53 +00:00
|
|
|
host: ${BF_PG_HOST}
|
|
|
|
|
port: ${BF_PG_PORT}
|
|
|
|
|
database: ${BF_PG_DB}
|
|
|
|
|
user: ${BF_PG_USER}
|
|
|
|
|
password: ${BF_PG_PASSWORD}
|
|
|
|
|
poolMax: ${BF_PG_POOL_MAX}
|
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-24 00:28:09 +00:00
|
|
|
noderedUrl: ${BF_NODERED_URL}
|