server: add configuration for install notifications (#4331)

* server: track `installed_at`, only send install notification on first install
* server: add configuration for install notifications
This commit is contained in:
Matthew Penner 2022-09-25 13:16:58 -06:00 committed by GitHub
parent 23124c9b08
commit 8e1a21563e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 6 deletions

View file

@ -205,4 +205,18 @@ return [
'assets' => [
'use_hash' => env('PTERODACTYL_USE_ASSET_HASH', false),
],
/*
|--------------------------------------------------------------------------
| Email Notification Settings
|--------------------------------------------------------------------------
|
| This section controls what notifications are sent to users.
*/
'email' => [
// Should an email be sent to a server owner once their server has completed it's first install process?
'send_install_notification' => env('PTERODACTYL_SEND_INSTALL_NOTIFICATION', true),
// Should an email be sent to a server owner whenever their server is reinstalled?
'send_reinstall_notification' => env('PTERODACTYL_SEND_REINSTALL_NOTIFICATION', true),
],
];