2020-02-18 21:51:42 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
This file define constants and options for the app
|
|
|
|
*/
|
|
|
|
|
|
|
|
$env = [
|
2021-01-27 16:39:52 +01:00
|
|
|
'ENV' => '%APP_ENV%', #env name (probably 'dev' or 'prod'), this value is used to get the env.XXX.php.dist matching env file
|
2020-02-18 21:51:42 +01:00
|
|
|
'SESSION_NAME' => 'raspisms',
|
|
|
|
|
|
|
|
//RaspiSMS settings
|
|
|
|
'WEBSITE_TITLE' => 'RaspiSMS',
|
|
|
|
'WEBSITE_DESCRIPTION' => '',
|
|
|
|
'WEBSITE_AUTHOR' => 'Raspberry Pi FR',
|
|
|
|
'PWD_SCRIPTS' => PWD . '/scripts',
|
|
|
|
'PWD_RECEIVEDS' => PWD . '/receiveds',
|
|
|
|
'HTTP_PWD_SOUND' => HTTP_PWD_ASSETS . '/sounds',
|
|
|
|
'PWD_ADAPTERS' => PWD . '/adapters',
|
2021-01-17 03:16:57 +01:00
|
|
|
'PWD_DATA' => PWD . '/data',
|
2021-03-21 17:14:52 +01:00
|
|
|
'HTTP_PWD_DATA' => HTTP_PWD . '/data',
|
2021-04-03 18:19:08 +02:00
|
|
|
'PWD_DATA_PUBLIC' => PWD . '/data/public',
|
|
|
|
'HTTP_PWD_DATA_PUBLIC' => HTTP_PWD . '/data/public',
|
2020-03-04 04:18:26 +01:00
|
|
|
'PWD_LOGS' => '/var/log/raspisms',
|
2020-02-18 21:51:42 +01:00
|
|
|
'PWD_PID' => '/var/run/raspisms',
|
|
|
|
'APP_SECRET' => '%APP_SECRET%',
|
2020-06-17 19:34:51 +02:00
|
|
|
'ENABLE_COMMAND' => false,
|
2020-06-24 18:55:03 +02:00
|
|
|
'ENABLE_ACCOUNT_DELETION' => true,
|
2020-02-18 21:51:42 +01:00
|
|
|
|
|
|
|
//E-mail types
|
|
|
|
'EMAIL_RESET_PASSWORD' => [
|
|
|
|
'type' => 'email_reset_password',
|
|
|
|
'subject' => 'Réinitialisation de votre mot de passe',
|
|
|
|
'template' => 'email/reset-password',
|
|
|
|
],
|
|
|
|
'EMAIL_CREATE_USER' => [
|
|
|
|
'type' => 'email_create_user',
|
|
|
|
'subject' => 'Création de votre compte RaspiSMS',
|
|
|
|
'template' => 'email/create-user',
|
|
|
|
],
|
|
|
|
'EMAIL_TRANSFER_SMS' => [
|
|
|
|
'type' => 'email_transfer_sms',
|
|
|
|
'subject' => 'Vous avez reçu un SMS',
|
|
|
|
'template' => 'email/transfer-sms',
|
|
|
|
],
|
2021-06-09 01:22:11 +02:00
|
|
|
'EMAIL_QUOTA_LIMIT_CLOSE' => [
|
|
|
|
'type' => 'email_quota_limit_close',
|
|
|
|
'subject' => 'Vous avez presque atteint votre limite de SMS',
|
|
|
|
'template' => 'email/quota-limit-close',
|
|
|
|
],
|
|
|
|
'EMAIL_QUOTA_LIMIT_REACHED' => [
|
|
|
|
'type' => 'email_quota_limit_reached',
|
|
|
|
'subject' => 'Vous avez atteint votre limite de SMS',
|
|
|
|
'template' => 'email/quota-limit-reached',
|
|
|
|
],
|
2020-02-18 21:51:42 +01:00
|
|
|
|
|
|
|
//Phone messages types
|
2020-03-04 01:40:47 +01:00
|
|
|
'QUEUE_ID_PHONE_PREFIX' => ftok(__FILE__, 'p'),
|
2020-02-18 21:51:42 +01:00
|
|
|
'QUEUE_TYPE_SEND_MSG' => 1,
|
|
|
|
'QUEUE_TYPE_RECEIVE_MSG' => 2,
|
|
|
|
|
|
|
|
//Queues ids
|
2020-03-04 01:40:47 +01:00
|
|
|
'QUEUE_ID_WEBHOOK' => ftok(__FILE__, 'w'),
|
2020-02-18 21:51:42 +01:00
|
|
|
'QUEUE_TYPE_WEBHOOK' => 3,
|
2020-04-02 18:38:41 +02:00
|
|
|
|
|
|
|
//Queue email
|
|
|
|
'QUEUE_ID_EMAIL' => ftok(__FILE__, 'e'),
|
|
|
|
'QUEUE_TYPE_EMAIL' => 3,
|
2020-02-18 21:51:42 +01:00
|
|
|
|
|
|
|
//User default settings
|
|
|
|
'USER_DEFAULT_SETTINGS' => [
|
|
|
|
'detect_url' => 1,
|
|
|
|
'sms_reception_sound' => 1,
|
|
|
|
'transfer' => 0,
|
|
|
|
'smsstop' => 1,
|
|
|
|
'sms_flash' => 0,
|
|
|
|
'templating' => 1,
|
|
|
|
'display_help' => 1,
|
|
|
|
'conditional_group' => 1,
|
|
|
|
'webhook' => 1,
|
|
|
|
'preferred_phone_country' => 'fr,be,ca',
|
|
|
|
'default_phone_country' => 'fr',
|
|
|
|
'authorized_phone_country' => 'fr,be,ca',
|
2021-04-03 18:19:08 +02:00
|
|
|
'mms' => 1,
|
2021-06-09 01:22:11 +02:00
|
|
|
'alert_quota_limit_reached' => 1,
|
|
|
|
'alert_quota_limit_close' => 0.9,
|
2020-02-18 21:51:42 +01:00
|
|
|
],
|
|
|
|
];
|
|
|
|
|