14 lines
523 B
PHP
14 lines
523 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
$controlSecretConfig = $controlSecretConfig ?? (is_file('/home/seo/secret/control.php') ? require '/home/seo/secret/control.php' : []);
|
|
$controlVapidConfig = is_array($controlSecretConfig['vapid'] ?? null) ? $controlSecretConfig['vapid'] : [];
|
|
|
|
if (!defined('VAPID_PUBLIC_KEY')) {
|
|
define('VAPID_PUBLIC_KEY', (string)($controlVapidConfig['public_key'] ?? ''));
|
|
}
|
|
|
|
if (!defined('VAPID_PRIVATE_KEY')) {
|
|
define('VAPID_PRIVATE_KEY', (string)($controlVapidConfig['private_key'] ?? ''));
|
|
}
|