CONFIGURATION
Start from the example files, never a copied production secret file.
The public project describes supported topology through example configuration files. Production credentials, node keys, producer keys and merchant secrets belong only on the machine that uses them.
Reference files
| File | Purpose |
|---|---|
| config/config.example.php | Generic web/server configuration shape. |
| config/paybyte.org.example.php | Primary public-node example topology. |
| config/standalone.example.php | Self-contained standalone topology using SQLite. |
Web/server shape
PHP
return [
'deployment' => ['mode' => 'web'],
'database' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'database' => 'pbe',
'user' => 'pbe',
'password' => 'CHANGE_ME',
],
'network' => [
'timeoutSeconds' => 5,
'allowPrivatePeers' => false,
'seeds' => ['https://paybyte.org'],
],
'commerce' => ['webhooks' => [
'enabled' => false,
'manageToken' => '',
'signingSecret' => '',
]],
];Standalone shape
PHP
return [
'deployment' => [
'mode' => 'standalone',
'localHost' => '127.0.0.1',
'localPort' => 8024,
'p2pHost' => '0.0.0.0',
'p2pPort' => 8025,
'publicRpc' => false,
],
'database' => ['driver' => 'sqlite', 'path' => '<local pbe.sqlite>'],
'network' => [
'timeoutSeconds' => 5,
'allowPrivatePeers' => false,
'seeds' => ['https://paybyte.org'],
],
'commerce' => ['webhooks' => [
'enabled' => false,
'manageToken' => '',
'signingSecret' => '',
]],
];Do not publish the active configThe examples intentionally use placeholders. The active production configuration can contain database credentials and optional Commerce webhook secrets.
