Files
eportfolio/portfolio-private/smtp-config.example.php
T

38 lines
1.3 KiB
PHP

<?php
/**
* SMTP settings for the portfolio contact form.
*
* 1. Copy this file to smtp-config.php (same folder).
* 2. Fill in the values below.
* 3. chmod 640 smtp-config.php && chown root:www-data smtp-config.php
*
* This folder must stay OUTSIDE the web root: nobody should be able to
* download it from a browser.
*/
return [
// Custom-domain address linked to your Proton SMTP token
// (Proton: Settings > All settings > Proton Mail > IMAP/SMTP > SMTP tokens).
// A @proton.me / @pm.me address will NOT work here: Proton only issues
// SMTP tokens for custom-domain addresses.
'smtp_user' => 'contact@your-domain.tld',
// The token itself (not your Proton password).
'smtp_token' => 'PASTE_YOUR_SMTP_TOKEN_HERE',
// Where the messages are delivered. Can be any of your addresses.
'to' => 'you@example.com',
// Only these sites may post to the form (scheme + host, no trailing slash).
'allowed_origins' => [
'https://nelson-thomas.fr',
'https://www.nelson-thomas.fr',
],
// Anti-spam: messages allowed per visitor IP per hour.
'max_per_hour' => 5,
// Random string used to anonymise IPs in the rate-limit files.
// Generate one with: openssl rand -hex 16
'rate_salt' => 'CHANGE_ME_RANDOM_STRING',
];