42 lines
821 B
PHP
42 lines
821 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
namespace Kimendisch\Sbgg_Jetzt;
|
|
|
|
class Env {
|
|
/**
|
|
* Configuration for sending mail.
|
|
*/
|
|
const MAIL = [
|
|
// SMTP SERVER //
|
|
// smtp server address
|
|
"host" => "smtp.example.com",
|
|
|
|
// smtp port
|
|
"port" => 587,
|
|
|
|
// smtp username
|
|
"username" => "noreply@example.com",
|
|
|
|
// smtp password
|
|
"password" => "topsecret123",
|
|
|
|
// whether starttls should be used
|
|
// (ssl/tls will be used otherwise)
|
|
"starttls" => true
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
* Configuration for admin area.
|
|
*/
|
|
const ADMIN_AREA = [
|
|
// AUTHENTICATION //
|
|
// hashed auth token used for login
|
|
// generate using `php -r 'echo(password_hash("yourtokenhere", PASSWORD_DEFAULT));'`
|
|
// token should have at least 32 characters
|
|
"auth_token_hash" => '<hashed token>'
|
|
];
|
|
}
|
|
?>
|