Add dist files

This commit is contained in:
osaajani 2020-02-18 21:51:42 +01:00
parent 38a8b023cb
commit 12c31fe37e
4 changed files with 95 additions and 0 deletions

4
.gitignore vendored
View File

@ -3,3 +3,7 @@
.php_cs.cache
vendor/
composer.lock
env.*
phinx.*
!*.dist

65
env.php.dist Executable file
View File

@ -0,0 +1,65 @@
<?php
/*
This file define constants and options for the app
*/
$env = [
'ENV' => '%APP_ENV%',
'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',
'PWD_DATAS' => PWD . '/datas',
'PWD_LOGS' => '/var/log/',
'PWD_PID' => '/var/run/raspisms',
'APP_SECRET' => '%APP_SECRET%',
//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',
],
//Phone messages types
'QUEUE_TYPE_SEND_MSG' => 1,
'QUEUE_TYPE_RECEIVE_MSG' => 2,
//Queues ids
'QUEUE_ID_WEBHOOK' => 8265838073837783,
'QUEUE_TYPE_WEBHOOK' => 3,
//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',
'mms' => 0,
],
];

9
env.prod.php.dist Executable file
View File

@ -0,0 +1,9 @@
<?php
$env = [
//Database access
'DATABASE_HOST' => '%APP_DATABASE_HOST%',
'DATABASE_NAME' => '%APP_DATABASE_NAME%',
'DATABASE_USER' => '%APP_DATABASE_USER%',
'DATABASE_PASSWORD' => '%APP_DATABASE_PASS%',
];

17
phinx.yml.dist Executable file
View File

@ -0,0 +1,17 @@
paths:
migrations: '%%PHINX_CONFIG_DIR%%/db/migrations'
seeds: '%%PHINX_CONFIG_DIR%%/db/seeds'
environments:
default_migration_table: phinxlog
default_database: prod
prod:
adapter: mysql
host: '%APP_DATABASE_HOST%'
name: '%APP_DATABASE_NAME%'
user: '%APP_DATABASE_USER%'
pass: '%APP_DATABASE_PASS%'
port: 3306
charset: utf8
version_order: creation