summaryrefslogtreecommitdiff
path: root/core/config
diff options
context:
space:
mode:
Diffstat (limited to 'core/config')
-rw-r--r--core/config/anom_settings.php112
1 files changed, 0 insertions, 112 deletions
diff --git a/core/config/anom_settings.php b/core/config/anom_settings.php
index 7dc09b4..03e4cc5 100644
--- a/core/config/anom_settings.php
+++ b/core/config/anom_settings.php
@@ -201,121 +201,9 @@ define('MEDIA_STORAGE_ROOT', APP_ROOT.'/../storage/uploads/'); // Media files
-/** SECURITY SETTINGS ///////////////////////////////////////////////////////////
- * -----------------------------------------------------------------------------
- *
- * Cross Site Request Forgery
- * ---
- * Enables a CSRF cookie token to be set. When set to TRUE, token will be
- * checked on a submitted form. If you are accepting user data, it is strongly
- * recommended CSRF protection be enabled.
- * -----------------------------------------------------------------------------
- */
-
-define('CSRF_PROTECTION', false);
-
-define('CSRF_TOKEN_NAME', 'csrf_test_name'); // token name
-
-define('CSRF_COOKIE_NAME', 'csrf_cookie_name'); // cookie name
-
-define('CSRF_EXPIRE', 7200); // The number in seconds the token should expire.
-
-define('CSRF_REGENERATE', TRUE); // Regenerate token on every submission
-
-define('CSRF_EXCLUDE_URIS', array()); // Array of URIs which ignore CSRF checks
-
-
-
/** CREDENTIALS
* -----------------------------------------------------------------------------
*/
-/** SERVICE PARAMETRES
- * -----------------------------------------------------------------------------
- *
- * Connection parametres and credentials for accssing services
- * needed by the application; Such services may be..
- *
- * - RDBMS
- * -- MySQL
- * -- PotgresSQL
- *
- * - Caching services
- * -- Redis
- * -- MemCached
- *
- * Edit only the constants needed by the application;
- * Comment those you do not need;
- *
- * /////////////////////////////////////////////////////////////////////////////
- */
-
-/** DATABASE CONNECTION PARAMETRES
- * -----------------------------------------------------------------------------
- * Production and staging environments may use different databases.
- *
- * A safe practice is to keep credentials outside plain files like this one
- * in environmental variable or other secret file etc.
- *
- * Uncomment/enable each group of definitions suits your case to define
- * the credentials needed for accessing the database
- */
-
-define('DB_NAME', $ini['DB_NAME']);
-
-define('DB_USER', $ini['DB_USER']);
-
-define('DB_PASS', $ini['DB_PASS']);
-
-/** NOTE:
- * PDO_HOST can be a hostname/port combination -or- a unix socket
- *
- * ...examples:
- * define('PDO_HOST', 'host=/localhost') ## hostname case
- * define('PDO_HOST', 'host=/localhost;port=3456') ## hostname/port case
- * define('PDO_HOST', 'unix_socket=/sql/ex123:europe:some-db'); ## unix socket
- * define('PDO_HOST', 'unix_socket=/cloudsql/name-123456:europe-west4:name-db-eu');
- */
-
-define('PDO_HOST', $ini['PDO_HOST']);
-
-define('DB_TIMEZONE', "SET time_zone = 'Europe/Athens'");
-
-
-
-
-/** NOTE:
- * Both Redis and Memcached configurations are given as a template to work on;
- * In most cases the default values should do the job -- of course you need to
- * read the README file (check the project's root);
- * As these caching services are not fully tested you may need to ochestrate
- * the services in detail or edit the connection strings into the core classes
- * (hosted under the '/core/classes/cacher' folder)
- */
-
-
-/** REDIS SERVICE
- * -----------------------------------------------------------------------------
- * Most of the times Redis is running on 'localhost' (host = '127.0.0.1')
- * When implemented via anom's docker-composer (redis via bridge) then you need
- * do declare the hostname as 'redis'
- */
-
-# if (!defined('REDIS_HOST')) define('REDIS_HOST', 'redis');
-#
-# if (!defined('REDIS_PORT')) define('REDIS_PORT', 6379);
-#
-# if (!defined('REDIS_PASS')) define('REDIS_PASS', null);
-
-
-/** MEMCACHED
- * -----------------------------------------------------------------------------
- * Memcached looks very much like Redis (plus, both are serving from RAM)
- * Usualy Memcashed is running localy so host is 'localhost' ('127.0.0.1')
- * If you use the framework's docker-composer implementation then
- * the hostname is 'anomemcached'
- */
-
-# if (!defined('MEMCACHE_HOST')) define('MEMCACHE_HOST', 'anomemcached');
\ No newline at end of file