Configuration Overview
Flowra configuration is file-based and environment-driven. Runtime settings live in app/Config and are loaded through the config() helper.
How config works
core/Support/config.js reads JavaScript files inside app/Config and exposes them via a simple API:
const config = require('./core/Support/config');
const port = config('app.port');
const database = config('database');
const all = config.all();
Config keys follow a namespace.key pattern. The namespace maps to a file in app/Config.
Default config files
app/Config/App.js- app settings, HTTP options, providersapp/Config/Database.js- Knex connections and poolsapp/Config/Cache.js- cache stores and defaultsapp/Config/Logger.js- logging output and transport settingsapp/Config/Model.js- base model behaviorapp/Config/Service.js- base service helpers and database accessapp/Config/Validation.js- request validation rules
Environment variables
Most config values are derived from .env. Use the CLI to generate a fresh example:
flowra env:example
See Environment Variables for the full list.
Keep config close to the app
Because config is file-based, teams can audit changes easily and review production settings in code.