Files
website/server/subscribe.config.example.php
T
chrnx 731631ecd5 feat(site): email launch-list capture with a PHP/MySQL endpoint
A signup form in the closing section posts to subscribe.php (ships in the build): PDO/MySQL, honeypot, idempotent insert, optional mail() notify. DB creds live in a gitignored config kept above the web root; schema and setup in server/.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 19:09:39 -05:00

19 lines
671 B
PHP

<?php
/**
* Copy this to `subscribe.config.php` and fill in real values.
*
* Place the real file ONE LEVEL ABOVE the web root if you can (so it is never
* web-servable), e.g. /home/USER/subscribe.config.php when the docroot is
* /home/USER/green-tea.expressive-tea.io/. subscribe.php looks there first,
* then falls back to sitting next to it.
*
* Never commit the real subscribe.config.php — it holds the DB password.
*/
return [
'dsn' => 'mysql:host=localhost;dbname=YOUR_DB;charset=utf8mb4',
'user' => 'YOUR_DB_USER',
'pass' => 'YOUR_DB_PASSWORD',
'notify' => 'support@expressive-tea.io', // set to '' to skip notification emails
];