2020-03-02 10:59:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Venom\Config;
|
2020-03-28 20:11:51 +01:00
|
|
|
use Venom\Database\DatabaseHandler;
|
2020-03-02 10:59:28 +01:00
|
|
|
|
|
|
|
$config = Config::getInstance();
|
|
|
|
$config->setVersion(1.0);
|
|
|
|
$config->setDatabase([
|
2020-03-28 20:11:51 +01:00
|
|
|
DatabaseHandler::DB_TYPE => 'mysql', //please change only if you now what you're doing! this can break a lot.
|
|
|
|
DatabaseHandler::DB_HOST => '127.0.0.1',
|
|
|
|
DatabaseHandler::DB_PORT => '3306', //default port is 3306
|
|
|
|
DatabaseHandler::DB_USER => 'venom',
|
|
|
|
DatabaseHandler::DB_PASSWORD => 'venomPassword',
|
|
|
|
DatabaseHandler::DB_DB => 'venomCMS',
|
|
|
|
DatabaseHandler::DB_EXTRA => '' // need to start with ';'
|
2020-03-02 10:59:28 +01:00
|
|
|
]);
|
|
|
|
|
2020-03-28 20:11:51 +01:00
|
|
|
// used for external batch-mailing and error reporting.
|
2020-03-02 10:59:28 +01:00
|
|
|
// please generate login data at: api.vstz.dev
|
2020-05-31 17:00:05 +02:00
|
|
|
// api will check this data before processing
|
2020-03-02 10:59:28 +01:00
|
|
|
$config->setAPIAuth([
|
2020-05-31 17:00:05 +02:00
|
|
|
'useAPI' => true,
|
2020-03-02 10:59:28 +01:00
|
|
|
'url' => 'https://api.vstz.dev/v1/',
|
|
|
|
'user' => 'vstz',
|
|
|
|
'pw' => '6(f&B~ZxH3DfC#qJ',
|
|
|
|
'logsError' => true
|
|
|
|
]);
|
|
|
|
|
2020-05-31 17:00:05 +02:00
|
|
|
/**
|
|
|
|
* BATCH Mailing is something that will send only mails after a specific time like 1 min.
|
|
|
|
* it is used to prevent spamming.
|
|
|
|
* batch mailing only works via API!... if API not used BatchMailing will disabled... or you have a cron that works like a batch...
|
|
|
|
*/
|
2020-03-02 10:59:28 +01:00
|
|
|
$config->setMail([
|
|
|
|
'useBatch' => true, //if true it will not send mails.
|
2020-05-31 17:00:05 +02:00
|
|
|
'writeToDB' => true, //is needed for batch and is always true if batch is use
|
2020-03-02 10:59:28 +01:00
|
|
|
//this stuff is only important if not using batch mailing!
|
|
|
|
'host' => 'localhost',
|
|
|
|
'port' => '587',
|
|
|
|
'useTLS' => true, //use startTLS. is the default case ;) here it's important the security Cert is secure...
|
2020-03-28 20:11:51 +01:00
|
|
|
'user' => 'youruser@yourdomain.de',
|
2020-03-02 10:59:28 +01:00
|
|
|
'password' => 'this-is-secret',
|
|
|
|
'from' => 'info@venom.io'
|
|
|
|
]);
|
|
|
|
|
|
|
|
// all templates are in __DIR__/tpl/
|
|
|
|
// all themes are in __DIR__/public/theme/
|
|
|
|
$config->setRender([
|
|
|
|
'theme' => 'default', //very important! it will search for a folder with this name.
|
2020-04-03 13:19:26 +02:00
|
|
|
'baseFile' => 'base', //this will called after all templates are rendered...
|
2020-03-02 10:59:28 +01:00
|
|
|
'useCache' => false, //is only on big systems good
|
|
|
|
'cacheName' => 'defaultCache', //this is for bigger systems, ignore it
|
2020-05-31 17:00:05 +02:00
|
|
|
'uploadDir' => 'content/'
|
2020-03-02 10:59:28 +01:00
|
|
|
]);
|
|
|
|
|
|
|
|
$config->setMaintainMode(false);
|
|
|
|
$config->setDevMode(true);
|
2020-05-31 17:00:05 +02:00
|
|
|
$config->setBaseUrl(''); // can changed to something like that: https://example.com !not enter a / after the url! this will break all
|
2020-03-02 10:59:28 +01:00
|
|
|
|
|
|
|
$config->close();
|