2020-03-02 10:59:28 +01:00
< ? php
2020-09-10 22:47:58 +02:00
use Venom\Core\Config ;
2021-01-03 16:59:11 +01:00
use Venom\Core\Database\Database ;
2020-03-02 10:59:28 +01:00
$config = Config :: getInstance ();
$config -> setVersion ( 1.0 );
$config -> setDatabase ([
2021-01-03 16:59:11 +01:00
Database :: DB_TYPE => 'mysql' , //please change only if you know what you're doing! this can break a lot.
Database :: DB_HOST => '127.0.0.1' ,
Database :: DB_PORT => '3306' , //default port is 3306
Database :: DB_USER => 'venom' ,
Database :: DB_PASSWORD => 'venomPassword' ,
Database :: DB_DB => 'venomCMS' ,
Database :: DB_EXTRA => '' // need to start with ';'
2020-03-02 10:59:28 +01:00
]);
2020-05-31 17:00:05 +02:00
/**
2020-09-10 22:47:58 +02:00
* Cron Mailing is something that will send only mails after a specific time like 1 min .
2020-05-31 17:00:05 +02:00
* it is used to prevent spamming .
2020-09-10 22:47:58 +02:00
* CronMailing looks if the Same Mail is in the Database in the last 24 Hours ! if it ' s already in then it will skip the sending !
2020-05-31 17:00:05 +02:00
*/
2020-03-02 10:59:28 +01:00
$config -> setMail ([
2020-09-10 22:47:58 +02:00
'useCron' => true , //if true it will not send mails directly.
'writeToDB' => true , //is needed for cron and is always true if batch is use
2020-03-02 10:59:28 +01:00
'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'
]);
2020-09-10 22:47:58 +02:00
$config -> setSecurity ([
'useSecurity' => true , // should init the Security Module
'securityClass' => Venom\Security\BaseLogin :: class , // Security class that is used
'secret' => 'venomDefaultSecret' , // add to the hash.. ;) use HashingAlgo
'algo' => 'SHA256' // SHA256, SHA512...,
]);
2020-03-02 10:59:28 +01:00
// 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-09-20 17:15:20 +02:00
'assetDir' => 'default' ,
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-09-10 22:47:58 +02:00
'uploadDir' => 'content/' ,
'useStaticUrl' => false ,
2020-03-02 10:59:28 +01:00
]);
2020-09-10 22:47:58 +02:00
$config -> setEnableRouter ( false );
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-07-24 11:08:07 +02:00
$config -> setSeoMode ( true ); //seo mode is to lookup the complete entered url in the database! without query-parameters and load the get parameters from it
2020-03-02 10:59:28 +01:00
$config -> close ();