lineendings config

This commit is contained in:
Ulf Gebhardt 2021-03-30 17:01:27 +02:00
parent 2e178360f1
commit b64f4748da
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
3 changed files with 478 additions and 478 deletions

View File

@ -1,408 +1,408 @@
<?php <?php
use Cake\Cache\Engine\FileEngine; use Cake\Cache\Engine\FileEngine;
use Cake\Database\Connection; use Cake\Database\Connection;
use Cake\Database\Driver\Mysql; use Cake\Database\Driver\Mysql;
use Cake\Error\ExceptionRenderer; use Cake\Error\ExceptionRenderer;
use Cake\Log\Engine\FileLog; use Cake\Log\Engine\FileLog;
use Cake\Mailer\Transport\MailTransport; use Cake\Mailer\Transport\MailTransport;
return [ return [
/** /**
* Debug Level: * Debug Level:
* *
* Production Mode: * Production Mode:
* false: No error messages, errors, or warnings shown. * false: No error messages, errors, or warnings shown.
* *
* Development Mode: * Development Mode:
* true: Errors and warnings shown. * true: Errors and warnings shown.
*/ */
'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN), 'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN),
/** /**
* Configure basic information about the application. * Configure basic information about the application.
* *
* - namespace - The namespace to find app classes under. * - namespace - The namespace to find app classes under.
* - defaultLocale - The default locale for translation, formatting currencies and numbers, date and time. * - defaultLocale - The default locale for translation, formatting currencies and numbers, date and time.
* - encoding - The encoding used for HTML + database connections. * - encoding - The encoding used for HTML + database connections.
* - base - The base directory the app resides in. If false this * - base - The base directory the app resides in. If false this
* will be auto detected. * will be auto detected.
* - dir - Name of app directory. * - dir - Name of app directory.
* - webroot - The webroot directory. * - webroot - The webroot directory.
* - wwwRoot - The file path to webroot. * - wwwRoot - The file path to webroot.
* - baseUrl - To configure CakePHP to *not* use mod_rewrite and to * - baseUrl - To configure CakePHP to *not* use mod_rewrite and to
* use CakePHP pretty URLs, remove these .htaccess * use CakePHP pretty URLs, remove these .htaccess
* files: * files:
* /.htaccess * /.htaccess
* /webroot/.htaccess * /webroot/.htaccess
* And uncomment the baseUrl key below. * And uncomment the baseUrl key below.
* - fullBaseUrl - A base URL to use for absolute links. When set to false (default) * - fullBaseUrl - A base URL to use for absolute links. When set to false (default)
* CakePHP generates required value based on `HTTP_HOST` environment variable. * CakePHP generates required value based on `HTTP_HOST` environment variable.
* However, you can define it manually to optimize performance or if you * However, you can define it manually to optimize performance or if you
* are concerned about people manipulating the `Host` header. * are concerned about people manipulating the `Host` header.
* - imageBaseUrl - Web path to the public images directory under webroot. * - imageBaseUrl - Web path to the public images directory under webroot.
* - cssBaseUrl - Web path to the public css directory under webroot. * - cssBaseUrl - Web path to the public css directory under webroot.
* - jsBaseUrl - Web path to the public js directory under webroot. * - jsBaseUrl - Web path to the public js directory under webroot.
* - paths - Configure paths for non class based resources. Supports the * - paths - Configure paths for non class based resources. Supports the
* `plugins`, `templates`, `locales` subkeys, which allow the definition of * `plugins`, `templates`, `locales` subkeys, which allow the definition of
* paths for plugins, view templates and locale files respectively. * paths for plugins, view templates and locale files respectively.
*/ */
'App' => [ 'App' => [
'namespace' => 'App', 'namespace' => 'App',
'encoding' => env('APP_ENCODING', 'UTF-8'), 'encoding' => env('APP_ENCODING', 'UTF-8'),
'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'), 'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'),
'defaultTimezone' => env('APP_DEFAULT_TIMEZONE', 'UTC'), 'defaultTimezone' => env('APP_DEFAULT_TIMEZONE', 'UTC'),
'base' => false, 'base' => false,
'dir' => 'src', 'dir' => 'src',
'webroot' => 'webroot', 'webroot' => 'webroot',
'wwwRoot' => WWW_ROOT, 'wwwRoot' => WWW_ROOT,
//'baseUrl' => env('SCRIPT_NAME'), //'baseUrl' => env('SCRIPT_NAME'),
'fullBaseUrl' => false, 'fullBaseUrl' => false,
'imageBaseUrl' => 'img/', 'imageBaseUrl' => 'img/',
'cssBaseUrl' => 'css/', 'cssBaseUrl' => 'css/',
'jsBaseUrl' => 'js/', 'jsBaseUrl' => 'js/',
'paths' => [ 'paths' => [
'plugins' => [ROOT . DS . 'plugins' . DS], 'plugins' => [ROOT . DS . 'plugins' . DS],
'templates' => [APP . 'Template' . DS], 'templates' => [APP . 'Template' . DS],
'locales' => [APP . 'Locale' . DS], 'locales' => [APP . 'Locale' . DS],
], ],
], ],
/** /**
* Security and encryption configuration * Security and encryption configuration
* *
* - salt - A random string used in security hashing methods. * - salt - A random string used in security hashing methods.
* The salt value is also used as the encryption key. * The salt value is also used as the encryption key.
* You should treat it as extremely sensitive data. * You should treat it as extremely sensitive data.
*/ */
'Security' => [ 'Security' => [
'salt' => env('SECURITY_SALT', '7ddf685a27d997ef36e51bdd626e7fc6b50a3abfb2971e8e59974d421116a150'), 'salt' => env('SECURITY_SALT', '7ddf685a27d997ef36e51bdd626e7fc6b50a3abfb2971e8e59974d421116a150'),
], ],
/** /**
* Apply timestamps with the last modified time to static assets (js, css, images). * Apply timestamps with the last modified time to static assets (js, css, images).
* Will append a querystring parameter containing the time the file was modified. * Will append a querystring parameter containing the time the file was modified.
* This is useful for busting browser caches. * This is useful for busting browser caches.
* *
* Set to true to apply timestamps when debug is true. Set to 'force' to always * Set to true to apply timestamps when debug is true. Set to 'force' to always
* enable timestamping regardless of debug value. * enable timestamping regardless of debug value.
*/ */
'Asset' => [ 'Asset' => [
//'timestamp' => true, //'timestamp' => true,
// 'cacheTime' => '+1 year' // 'cacheTime' => '+1 year'
], ],
/** /**
* Configure the cache adapters. * Configure the cache adapters.
*/ */
'Cache' => [ 'Cache' => [
'default' => [ 'default' => [
'className' => FileEngine::class, 'className' => FileEngine::class,
'path' => CACHE, 'path' => CACHE,
'url' => env('CACHE_DEFAULT_URL', null), 'url' => env('CACHE_DEFAULT_URL', null),
], ],
/** /**
* Configure the cache used for general framework caching. * Configure the cache used for general framework caching.
* Translation cache files are stored with this configuration. * Translation cache files are stored with this configuration.
* Duration will be set to '+2 minutes' in bootstrap.php when debug = true * Duration will be set to '+2 minutes' in bootstrap.php when debug = true
* If you set 'className' => 'Null' core cache will be disabled. * If you set 'className' => 'Null' core cache will be disabled.
*/ */
'_cake_core_' => [ '_cake_core_' => [
'className' => FileEngine::class, 'className' => FileEngine::class,
'prefix' => 'myapp_cake_core_', 'prefix' => 'myapp_cake_core_',
'path' => CACHE . 'persistent/', 'path' => CACHE . 'persistent/',
'serialize' => true, 'serialize' => true,
'duration' => '+1 years', 'duration' => '+1 years',
'url' => env('CACHE_CAKECORE_URL', null), 'url' => env('CACHE_CAKECORE_URL', null),
], ],
/** /**
* Configure the cache for model and datasource caches. This cache * Configure the cache for model and datasource caches. This cache
* configuration is used to store schema descriptions, and table listings * configuration is used to store schema descriptions, and table listings
* in connections. * in connections.
* Duration will be set to '+2 minutes' in bootstrap.php when debug = true * Duration will be set to '+2 minutes' in bootstrap.php when debug = true
*/ */
'_cake_model_' => [ '_cake_model_' => [
'className' => FileEngine::class, 'className' => FileEngine::class,
'prefix' => 'myapp_cake_model_', 'prefix' => 'myapp_cake_model_',
'path' => CACHE . 'models/', 'path' => CACHE . 'models/',
'serialize' => true, 'serialize' => true,
'duration' => '+1 years', 'duration' => '+1 years',
'url' => env('CACHE_CAKEMODEL_URL', null), 'url' => env('CACHE_CAKEMODEL_URL', null),
], ],
/** /**
* Configure the cache for routes. The cached routes collection is built the * Configure the cache for routes. The cached routes collection is built the
* first time the routes are processed via `config/routes.php`. * first time the routes are processed via `config/routes.php`.
* Duration will be set to '+2 seconds' in bootstrap.php when debug = true * Duration will be set to '+2 seconds' in bootstrap.php when debug = true
*/ */
'_cake_routes_' => [ '_cake_routes_' => [
'className' => FileEngine::class, 'className' => FileEngine::class,
'prefix' => 'myapp_cake_routes_', 'prefix' => 'myapp_cake_routes_',
'path' => CACHE, 'path' => CACHE,
'serialize' => true, 'serialize' => true,
'duration' => '+1 years', 'duration' => '+1 years',
'url' => env('CACHE_CAKEROUTES_URL', null), 'url' => env('CACHE_CAKEROUTES_URL', null),
], ],
], ],
/** /**
* Configure the Error and Exception handlers used by your application. * Configure the Error and Exception handlers used by your application.
* *
* By default errors are displayed using Debugger, when debug is true and logged * By default errors are displayed using Debugger, when debug is true and logged
* by Cake\Log\Log when debug is false. * by Cake\Log\Log when debug is false.
* *
* In CLI environments exceptions will be printed to stderr with a backtrace. * In CLI environments exceptions will be printed to stderr with a backtrace.
* In web environments an HTML page will be displayed for the exception. * In web environments an HTML page will be displayed for the exception.
* With debug true, framework errors like Missing Controller will be displayed. * With debug true, framework errors like Missing Controller will be displayed.
* When debug is false, framework errors will be coerced into generic HTTP errors. * When debug is false, framework errors will be coerced into generic HTTP errors.
* *
* Options: * Options:
* *
* - `errorLevel` - int - The level of errors you are interested in capturing. * - `errorLevel` - int - The level of errors you are interested in capturing.
* - `trace` - boolean - Whether or not backtraces should be included in * - `trace` - boolean - Whether or not backtraces should be included in
* logged errors/exceptions. * logged errors/exceptions.
* - `log` - boolean - Whether or not you want exceptions logged. * - `log` - boolean - Whether or not you want exceptions logged.
* - `exceptionRenderer` - string - The class responsible for rendering * - `exceptionRenderer` - string - The class responsible for rendering
* uncaught exceptions. If you choose a custom class you should place * uncaught exceptions. If you choose a custom class you should place
* the file for that class in src/Error. This class needs to implement a * the file for that class in src/Error. This class needs to implement a
* render method. * render method.
* - `skipLog` - array - List of exceptions to skip for logging. Exceptions that * - `skipLog` - array - List of exceptions to skip for logging. Exceptions that
* extend one of the listed exceptions will also be skipped for logging. * extend one of the listed exceptions will also be skipped for logging.
* E.g.: * E.g.:
* `'skipLog' => ['Cake\Http\Exception\NotFoundException', 'Cake\Http\Exception\UnauthorizedException']` * `'skipLog' => ['Cake\Http\Exception\NotFoundException', 'Cake\Http\Exception\UnauthorizedException']`
* - `extraFatalErrorMemory` - int - The number of megabytes to increase * - `extraFatalErrorMemory` - int - The number of megabytes to increase
* the memory limit by when a fatal error is encountered. This allows * the memory limit by when a fatal error is encountered. This allows
* breathing room to complete logging or error handling. * breathing room to complete logging or error handling.
*/ */
'Error' => [ 'Error' => [
'errorLevel' => E_ALL, 'errorLevel' => E_ALL,
'exceptionRenderer' => ExceptionRenderer::class, 'exceptionRenderer' => ExceptionRenderer::class,
'skipLog' => [], 'skipLog' => [],
'log' => true, 'log' => true,
'trace' => true, 'trace' => true,
], ],
/** /**
* Email configuration. * Email configuration.
* *
* By defining transports separately from delivery profiles you can easily * By defining transports separately from delivery profiles you can easily
* re-use transport configuration across multiple profiles. * re-use transport configuration across multiple profiles.
* *
* You can specify multiple configurations for production, development and * You can specify multiple configurations for production, development and
* testing. * testing.
* *
* Each transport needs a `className`. Valid options are as follows: * Each transport needs a `className`. Valid options are as follows:
* *
* Mail - Send using PHP mail function * Mail - Send using PHP mail function
* Smtp - Send using SMTP * Smtp - Send using SMTP
* Debug - Do not send the email, just return the result * Debug - Do not send the email, just return the result
* *
* You can add custom transports (or override existing transports) by adding the * You can add custom transports (or override existing transports) by adding the
* appropriate file to src/Mailer/Transport. Transports should be named * appropriate file to src/Mailer/Transport. Transports should be named
* 'YourTransport.php', where 'Your' is the name of the transport. * 'YourTransport.php', where 'Your' is the name of the transport.
*/ */
'EmailTransport' => [ 'EmailTransport' => [
'default' => [ 'default' => [
'className' => MailTransport::class, 'className' => MailTransport::class,
/* /*
* The following keys are used in SMTP transports: * The following keys are used in SMTP transports:
*/ */
'host' => 'localhost', 'host' => 'localhost',
'port' => 25, 'port' => 25,
'timeout' => 30, 'timeout' => 30,
'username' => null, 'username' => null,
'password' => null, 'password' => null,
'client' => null, 'client' => null,
'tls' => null, 'tls' => null,
'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null), 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
], ],
], ],
/** /**
* Email delivery profiles * Email delivery profiles
* *
* Delivery profiles allow you to predefine various properties about email * Delivery profiles allow you to predefine various properties about email
* messages from your application and give the settings a name. This saves * messages from your application and give the settings a name. This saves
* duplication across your application and makes maintenance and development * duplication across your application and makes maintenance and development
* easier. Each profile accepts a number of keys. See `Cake\Mailer\Email` * easier. Each profile accepts a number of keys. See `Cake\Mailer\Email`
* for more information. * for more information.
*/ */
'Email' => [ 'Email' => [
'default' => [ 'default' => [
'transport' => 'default', 'transport' => 'default',
'from' => 'you@localhost', 'from' => 'you@localhost',
//'charset' => 'utf-8', //'charset' => 'utf-8',
//'headerCharset' => 'utf-8', //'headerCharset' => 'utf-8',
], ],
], ],
/** /**
* Connection information used by the ORM to connect * Connection information used by the ORM to connect
* to your application's datastores. * to your application's datastores.
* *
* ### Notes * ### Notes
* - Drivers include Mysql Postgres Sqlite Sqlserver * - Drivers include Mysql Postgres Sqlite Sqlserver
* See vendor\cakephp\cakephp\src\Database\Driver for complete list * See vendor\cakephp\cakephp\src\Database\Driver for complete list
* - Do not use periods in database name - it may lead to error. * - Do not use periods in database name - it may lead to error.
* See https://github.com/cakephp/cakephp/issues/6471 for details. * See https://github.com/cakephp/cakephp/issues/6471 for details.
* - 'encoding' is recommended to be set to full UTF-8 4-Byte support. * - 'encoding' is recommended to be set to full UTF-8 4-Byte support.
* E.g set it to 'utf8mb4' in MariaDB and MySQL and 'utf8' for any * E.g set it to 'utf8mb4' in MariaDB and MySQL and 'utf8' for any
* other RDBMS. * other RDBMS.
*/ */
'Datasources' => [ 'Datasources' => [
'default' => [ 'default' => [
'className' => Connection::class, 'className' => Connection::class,
'driver' => Mysql::class, 'driver' => Mysql::class,
'persistent' => false, 'persistent' => false,
'host' => 'mariadb', 'host' => 'mariadb',
/* /*
* CakePHP will use the default DB port based on the driver selected * CakePHP will use the default DB port based on the driver selected
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
* the following line and set the port accordingly * the following line and set the port accordingly
*/ */
//'port' => 'non_standard_port_number', //'port' => 'non_standard_port_number',
'username' => 'root', 'username' => 'root',
'password' => '', 'password' => '',
'database' => 'gradido_community', 'database' => 'gradido_community',
/* /*
* You do not need to set this flag to use full utf-8 encoding (internal default since CakePHP 3.6). * You do not need to set this flag to use full utf-8 encoding (internal default since CakePHP 3.6).
*/ */
//'encoding' => 'utf8mb4', //'encoding' => 'utf8mb4',
'timezone' => 'UTC', 'timezone' => 'UTC',
'flags' => [], 'flags' => [],
'cacheMetadata' => true, 'cacheMetadata' => true,
'log' => false, 'log' => false,
/** /**
* Set identifier quoting to true if you are using reserved words or * Set identifier quoting to true if you are using reserved words or
* special characters in your table or column names. Enabling this * special characters in your table or column names. Enabling this
* setting will result in queries built using the Query Builder having * setting will result in queries built using the Query Builder having
* identifiers quoted when creating SQL. It should be noted that this * identifiers quoted when creating SQL. It should be noted that this
* decreases performance because each query needs to be traversed and * decreases performance because each query needs to be traversed and
* manipulated before being executed. * manipulated before being executed.
*/ */
'quoteIdentifiers' => false, 'quoteIdentifiers' => false,
/** /**
* During development, if using MySQL < 5.6, uncommenting the * During development, if using MySQL < 5.6, uncommenting the
* following line could boost the speed at which schema metadata is * following line could boost the speed at which schema metadata is
* fetched from the database. It can also be set directly with the * fetched from the database. It can also be set directly with the
* mysql configuration directive 'innodb_stats_on_metadata = 0' * mysql configuration directive 'innodb_stats_on_metadata = 0'
* which is the recommended value in production environments * which is the recommended value in production environments
*/ */
//'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'], //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
'url' => env('DATABASE_URL', null), 'url' => env('DATABASE_URL', null),
], ],
/** /**
* The test connection is used during the test suite. * The test connection is used during the test suite.
*/ */
'test' => [ 'test' => [
'className' => Connection::class, 'className' => Connection::class,
'driver' => Mysql::class, 'driver' => Mysql::class,
'persistent' => false, 'persistent' => false,
'host' => 'localhost', 'host' => 'localhost',
//'port' => 'non_standard_port_number', //'port' => 'non_standard_port_number',
'username' => 'my_app', 'username' => 'my_app',
'password' => 'secret', 'password' => 'secret',
'database' => 'test_myapp', 'database' => 'test_myapp',
//'encoding' => 'utf8mb4', //'encoding' => 'utf8mb4',
'timezone' => 'UTC', 'timezone' => 'UTC',
'cacheMetadata' => true, 'cacheMetadata' => true,
'quoteIdentifiers' => false, 'quoteIdentifiers' => false,
'log' => false, 'log' => false,
//'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'], //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
'url' => env('DATABASE_TEST_URL', null), 'url' => env('DATABASE_TEST_URL', null),
], ],
], ],
/** /**
* Configures logging options * Configures logging options
*/ */
'Log' => [ 'Log' => [
'debug' => [ 'debug' => [
'className' => FileLog::class, 'className' => FileLog::class,
'path' => LOGS, 'path' => LOGS,
'file' => 'debug', 'file' => 'debug',
'url' => env('LOG_DEBUG_URL', null), 'url' => env('LOG_DEBUG_URL', null),
'scopes' => false, 'scopes' => false,
'levels' => ['notice', 'info', 'debug'], 'levels' => ['notice', 'info', 'debug'],
], ],
'error' => [ 'error' => [
'className' => FileLog::class, 'className' => FileLog::class,
'path' => LOGS, 'path' => LOGS,
'file' => 'error', 'file' => 'error',
'url' => env('LOG_ERROR_URL', null), 'url' => env('LOG_ERROR_URL', null),
'scopes' => false, 'scopes' => false,
'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'], 'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
], ],
// To enable this dedicated query log, you need set your datasource's log flag to true // To enable this dedicated query log, you need set your datasource's log flag to true
'queries' => [ 'queries' => [
'className' => FileLog::class, 'className' => FileLog::class,
'path' => LOGS, 'path' => LOGS,
'file' => 'queries', 'file' => 'queries',
'url' => env('LOG_QUERIES_URL', null), 'url' => env('LOG_QUERIES_URL', null),
'scopes' => ['queriesLog'], 'scopes' => ['queriesLog'],
], ],
], ],
/** /**
* Session configuration. * Session configuration.
* *
* Contains an array of settings to use for session configuration. The * Contains an array of settings to use for session configuration. The
* `defaults` key is used to define a default preset to use for sessions, any * `defaults` key is used to define a default preset to use for sessions, any
* settings declared here will override the settings of the default config. * settings declared here will override the settings of the default config.
* *
* ## Options * ## Options
* *
* - `cookie` - The name of the cookie to use. Defaults to 'CAKEPHP'. Avoid using `.` in cookie names, * - `cookie` - The name of the cookie to use. Defaults to 'CAKEPHP'. Avoid using `.` in cookie names,
* as PHP will drop sessions from cookies with `.` in the name. * as PHP will drop sessions from cookies with `.` in the name.
* - `cookiePath` - The url path for which session cookie is set. Maps to the * - `cookiePath` - The url path for which session cookie is set. Maps to the
* `session.cookie_path` php.ini config. Defaults to base path of app. * `session.cookie_path` php.ini config. Defaults to base path of app.
* - `timeout` - The time in minutes the session should be valid for. * - `timeout` - The time in minutes the session should be valid for.
* Pass 0 to disable checking timeout. * Pass 0 to disable checking timeout.
* Please note that php.ini's session.gc_maxlifetime must be equal to or greater * Please note that php.ini's session.gc_maxlifetime must be equal to or greater
* than the largest Session['timeout'] in all served websites for it to have the * than the largest Session['timeout'] in all served websites for it to have the
* desired effect. * desired effect.
* - `defaults` - The default configuration set to use as a basis for your session. * - `defaults` - The default configuration set to use as a basis for your session.
* There are four built-in options: php, cake, cache, database. * There are four built-in options: php, cake, cache, database.
* - `handler` - Can be used to enable a custom session handler. Expects an * - `handler` - Can be used to enable a custom session handler. Expects an
* array with at least the `engine` key, being the name of the Session engine * array with at least the `engine` key, being the name of the Session engine
* class to use for managing the session. CakePHP bundles the `CacheSession` * class to use for managing the session. CakePHP bundles the `CacheSession`
* and `DatabaseSession` engines. * and `DatabaseSession` engines.
* - `ini` - An associative array of additional ini values to set. * - `ini` - An associative array of additional ini values to set.
* *
* The built-in `defaults` options are: * The built-in `defaults` options are:
* *
* - 'php' - Uses settings defined in your php.ini. * - 'php' - Uses settings defined in your php.ini.
* - 'cake' - Saves session files in CakePHP's /tmp directory. * - 'cake' - Saves session files in CakePHP's /tmp directory.
* - 'database' - Uses CakePHP's database sessions. * - 'database' - Uses CakePHP's database sessions.
* - 'cache' - Use the Cache class to save sessions. * - 'cache' - Use the Cache class to save sessions.
* *
* To define a custom session handler, save it at src/Network/Session/<name>.php. * To define a custom session handler, save it at src/Network/Session/<name>.php.
* Make sure the class implements PHP's `SessionHandlerInterface` and set * Make sure the class implements PHP's `SessionHandlerInterface` and set
* Session.handler to <name> * Session.handler to <name>
* *
* To use database sessions, load the SQL file located at config/schema/sessions.sql * To use database sessions, load the SQL file located at config/schema/sessions.sql
*/ */
'Session' => [ 'Session' => [
'defaults' => 'php', 'defaults' => 'php',
], ],
// Gradido specific configuration // Gradido specific configuration
// Login Server ip and port // Login Server ip and port
'LoginServer' => [ 'LoginServer' => [
'host' => 'http://login-server', 'host' => 'http://login-server',
'port' => 1201 'port' => 1201
], ],
'API' => [ 'API' => [
'allowedCaller' => ['login-server'] 'allowedCaller' => ['login-server']
], ],
'ServerAdminEmail' => 'info@gradido.net', 'ServerAdminEmail' => 'info@gradido.net',
'noReplyEmail' => 'no-reply@gradido.net', 'noReplyEmail' => 'no-reply@gradido.net',
'disableEmail' => true, 'disableEmail' => true,
'GroupNode' => false 'GroupNode' => false
]; ];

View File

@ -1,51 +1,51 @@
HTTPServer.port = 1200 HTTPServer.port = 1200
JSONServer.port = 1201 JSONServer.port = 1201
Gradido.group_id = 1 Gradido.group_id = 1
crypto.server_admin_public = f909a866baec97c5460b8d7a93b72d3d4d20cc45d9f15d78bd83944eb9286b7f crypto.server_admin_public = f909a866baec97c5460b8d7a93b72d3d4d20cc45d9f15d78bd83944eb9286b7f
crypto.server_key = a51ef8ac7ef1abf162fb7a65261acd7a crypto.server_key = a51ef8ac7ef1abf162fb7a65261acd7a
# TODO auto-generate in docker build step # TODO auto-generate in docker build step
crypto.app_secret = 21ffbbc616fe crypto.app_secret = 21ffbbc616fe
# Server admin Passphrase # Server admin Passphrase
# nerve execute merit pool talk hockey basic win cargo spin disagree ethics swear price purchase say clutch decrease slow half forest reform cheese able # nerve execute merit pool talk hockey basic win cargo spin disagree ethics swear price purchase say clutch decrease slow half forest reform cheese able
# #
phpServer.url = http://localhost/ phpServer.url = http://localhost/
phpServer.host = nginx phpServer.host = nginx
loginServer.path = http://localhost/account loginServer.path = http://localhost/account
loginServer.default_locale = de loginServer.default_locale = de
loginServer.db.host = mariadb loginServer.db.host = mariadb
loginServer.db.name = gradido_login loginServer.db.name = gradido_login
loginServer.db.user = root loginServer.db.user = root
loginServer.db.password = loginServer.db.password =
loginServer.db.port = 3306 loginServer.db.port = 3306
email.disable = true email.disable = true
#email.username = #email.username =
#email.sender = #email.sender =
#email.admin_receiver = #email.admin_receiver =
#email.password = #email.password =
#email.smtp.url = #email.smtp.url =
#email.smtp.port = #email.smtp.port =
# binary is default, for debugging also json is possible # binary is default, for debugging also json is possible
#hedera.consensus.message_format = json #hedera.consensus.message_format = json
# TESTNET or MAINNET, TESTNET is default # TESTNET or MAINNET, TESTNET is default
hedera.nettype = TESTNET hedera.nettype = TESTNET
# server setup types: test, staging or production # server setup types: test, staging or production
ServerSetupType=test ServerSetupType=test
# Session timeout in minutes # Session timeout in minutes
# #
session.timeout = 15 session.timeout = 15
# Disabling security features for faster develop and testing # Disabling security features for faster develop and testing
unsecure.allow_passwort_via_json_request = 1 unsecure.allow_passwort_via_json_request = 1
unsecure.allow_auto_sign_transactions = 1 unsecure.allow_auto_sign_transactions = 1
unsecure.allow_cors_all = 1 unsecure.allow_cors_all = 1
# default disable, passwords must contain a number, a lower character, a high character, special character, and be at least 8 characters long # default disable, passwords must contain a number, a lower character, a high character, special character, and be at least 8 characters long
unsecure.allow_all_passwords = 1 unsecure.allow_all_passwords = 1

View File

@ -1,20 +1,20 @@
worker_count = 2 worker_count = 2
io_worker_count = 1 io_worker_count = 1
data_root_folder = /opt/instance/.gradido data_root_folder = /opt/instance/.gradido
hedera_mirror_endpoint = hcs.testnet.mirrornode.hedera.com:5600 hedera_mirror_endpoint = hcs.testnet.mirrornode.hedera.com:5600
sibling_node_file = /opt/instance/.gradido/sibling_nodes.txt sibling_node_file = /opt/instance/.gradido/sibling_nodes.txt
#group_requests_endpoint = 0.0.0.0:13701 #group_requests_endpoint = 0.0.0.0:13701
#record_requests_endpoint = 0.0.0.0:13702 #record_requests_endpoint = 0.0.0.0:13702
#manage_network_requests_endpoint = 0.0.0.0:13703 #manage_network_requests_endpoint = 0.0.0.0:13703
grpc_endpoint = 0.0.0.0:13701 grpc_endpoint = 0.0.0.0:13701
json_rpc_port = 13702 json_rpc_port = 13702
# larger value, larger batch, less concurrency # larger value, larger batch, less concurrency
blockchain_append_batch_size = 1000 blockchain_append_batch_size = 1000
#blochchain_init_batch_size = 1000 #blochchain_init_batch_size = 1000
#block_record_outbound_batch_size = 100 #block_record_outbound_batch_size = 100
general_batch_size = 1000 general_batch_size = 1000
group_register_topic_id = 0.0.79574 group_register_topic_id = 0.0.79574
topic_reset_allowed = 1 topic_reset_allowed = 1