Normalize config file line endings to LF

This commit is contained in:
Hypolite Petovan 2018-12-30 10:15:12 -05:00
parent 034d0f650b
commit ac7f7bb74f
4 changed files with 593 additions and 593 deletions

View File

@ -1,12 +1,12 @@
<?php <?php
// Addon configuration // Addon configuration
// Copy this configuration file to addon.config.php and edit it if you want to configure addons, see below example for the twitter addon // Copy this configuration file to addon.config.php and edit it if you want to configure addons, see below example for the twitter addon
return [ return [
'twitter' => [ 'twitter' => [
'consumerkey' => '1234567890', 'consumerkey' => '1234567890',
'consumersecret' => 'ABCDEFGHIJKLMONPQRSTUVWXYZ', 'consumersecret' => 'ABCDEFGHIJKLMONPQRSTUVWXYZ',
], ],
]; ];

View File

@ -1,424 +1,424 @@
<?php <?php
// CONFIG.PHP // CONFIG.PHP
/* This file declares the default values for the base config of Friendica. /* This file declares the default values for the base config of Friendica.
* *
* These configuration values aren't accessible from the admin settings page and custom values must be set in config/local.config.php * These configuration values aren't accessible from the admin settings page and custom values must be set in config/local.config.php
* *
* Please don't edit this file directly as its content may change in the upcoming versions. * Please don't edit this file directly as its content may change in the upcoming versions.
*/ */
return [ return [
'database' => [ 'database' => [
// host (String) // host (String)
// Hostname or IP address of the database server. // Hostname or IP address of the database server.
// Can contain the port number with the syntax "hostname:port". // Can contain the port number with the syntax "hostname:port".
'hostname' => '', 'hostname' => '',
// user (String) // user (String)
// Database user name. Please don't use "root". // Database user name. Please don't use "root".
'username' => '', 'username' => '',
// pass (String) // pass (String)
// Database user password. Please don't use empty passwords. // Database user password. Please don't use empty passwords.
'password' => '', 'password' => '',
// base (String) // base (String)
// Database name. // Database name.
'database' => '', 'database' => '',
// charset (String) // charset (String)
// Database connexion charset. Changing this value will likely corrupt special characters. // Database connexion charset. Changing this value will likely corrupt special characters.
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
], ],
'config' => [ 'config' => [
// admin_email (Comma-separated list) // admin_email (Comma-separated list)
// In order to perform system administration via the admin panel, // In order to perform system administration via the admin panel,
// this must precisely match the email address of the person logged in. // this must precisely match the email address of the person logged in.
'admin_email' => '', 'admin_email' => '',
// admin_nickname (String) // admin_nickname (String)
// Nickname of the main admin user, used if there are more than one admin user defined in config => admin_email. // Nickname of the main admin user, used if there are more than one admin user defined in config => admin_email.
'admin_nickname' => '', 'admin_nickname' => '',
// max_import_size (Integer) // max_import_size (Integer)
// Maximum body size of DFRN and Mail messages in characters. 0 is unlimited. // Maximum body size of DFRN and Mail messages in characters. 0 is unlimited.
'max_import_size' => 200000, 'max_import_size' => 200000,
// php_path (String) // php_path (String)
// Location of PHP command line processor. // Location of PHP command line processor.
'php_path' => 'php', 'php_path' => 'php',
], ],
'system' => [ 'system' => [
// allowed_link_protocols (Array) // allowed_link_protocols (Array)
// Allowed protocols in links URLs, add at your own risk. http is always allowed. // Allowed protocols in links URLs, add at your own risk. http is always allowed.
'allowed_link_protocols' => ['ftp', 'ftps', 'mailto', 'cid', 'gopher'], 'allowed_link_protocols' => ['ftp', 'ftps', 'mailto', 'cid', 'gopher'],
// always_show_preview (Boolean) // always_show_preview (Boolean)
// Only show small preview pictures. // Only show small preview pictures.
'always_show_preview' => false, 'always_show_preview' => false,
// archival_days (Integer) // archival_days (Integer)
// Number of days that we try to deliver content before we archive a contact. // Number of days that we try to deliver content before we archive a contact.
'archival_days' => 32, 'archival_days' => 32,
// auth_cookie_lifetime (Integer) // auth_cookie_lifetime (Integer)
// Number of days that should pass without any activity before a user who // Number of days that should pass without any activity before a user who
// chose "Remember me" when logging in is considered logged out. // chose "Remember me" when logging in is considered logged out.
'auth_cookie_lifetime' => 7, 'auth_cookie_lifetime' => 7,
// block_local_dir (Boolean) // block_local_dir (Boolean)
// Deny public access to the local user directory. // Deny public access to the local user directory.
'block_local_dir' => false, 'block_local_dir' => false,
// cache_driver (database|memcache|memcached|redis) // cache_driver (database|memcache|memcached|redis)
// Whether to use Memcache or Memcached or Redis to store temporary cache. // Whether to use Memcache or Memcached or Redis to store temporary cache.
'cache_driver' => 'database', 'cache_driver' => 'database',
// config_adapter (jit|preload) // config_adapter (jit|preload)
// Allow to switch the configuration adapter to improve performances at the cost of memory consumption. // Allow to switch the configuration adapter to improve performances at the cost of memory consumption.
'config_adapter' => 'jit', 'config_adapter' => 'jit',
// curl_range_bytes (Integer) // curl_range_bytes (Integer)
// Maximum number of bytes that should be fetched. Default is 0, which mean "no limit". // Maximum number of bytes that should be fetched. Default is 0, which mean "no limit".
'curl_range_bytes' => 0, 'curl_range_bytes' => 0,
// crawl_permit_period (Integer) // crawl_permit_period (Integer)
// Period in seconds between allowed searches when the number of free searches is reached and "permit_crawling" is activated. // Period in seconds between allowed searches when the number of free searches is reached and "permit_crawling" is activated.
'crawl_permit_period' => 60, 'crawl_permit_period' => 60,
// db_log (Path) // db_log (Path)
// Name of a logfile to log slow database queries. // Name of a logfile to log slow database queries.
'db_log' => '', 'db_log' => '',
// db_log_index (Path) // db_log_index (Path)
// Name of a logfile to log queries with bad indexes. // Name of a logfile to log queries with bad indexes.
'db_log_index' => '', 'db_log_index' => '',
// db_log_index_watch (Comma-separated list) // db_log_index_watch (Comma-separated list)
// Watchlist of indexes to watch. // Watchlist of indexes to watch.
'db_log_index_watch' => '', 'db_log_index_watch' => '',
// db_log_index_blacklist (Comma-separated list) // db_log_index_blacklist (Comma-separated list)
// Blacklist of indexes that shouldn't be watched. // Blacklist of indexes that shouldn't be watched.
'db_log_index_blacklist' => '', 'db_log_index_blacklist' => '',
// db_loglimit (Integer) // db_loglimit (Integer)
// If a database call lasts longer than this value in seconds it is logged. // If a database call lasts longer than this value in seconds it is logged.
// Inactive if system => db_log is empty. // Inactive if system => db_log is empty.
'db_loglimit' => 10, 'db_loglimit' => 10,
// db_loglimit_index (Integer) // db_loglimit_index (Integer)
// Number of index rows needed to be logged for indexes on the watchlist. 0 to disable. // Number of index rows needed to be logged for indexes on the watchlist. 0 to disable.
'db_loglimit_index' => 0, 'db_loglimit_index' => 0,
// db_loglimit_index_high (Integer) // db_loglimit_index_high (Integer)
// Number of index rows to be logged anyway (for any index). 0 to disable. // Number of index rows to be logged anyway (for any index). 0 to disable.
'db_loglimit_index_high' => 0, 'db_loglimit_index_high' => 0,
// dbclean_expire_conversation (Integer) // dbclean_expire_conversation (Integer)
// When DBClean is enabled, any entry in the conversation table will be deleted after this many days. // When DBClean is enabled, any entry in the conversation table will be deleted after this many days.
// This data is used for ActivityPub, so it shouldn't be lower than the average duration of a discussion. // This data is used for ActivityPub, so it shouldn't be lower than the average duration of a discussion.
'dbclean_expire_conversation' => 90, 'dbclean_expire_conversation' => 90,
// dbclean-expire-limit (Integer) // dbclean-expire-limit (Integer)
// This defines the number of items that are to be deleted in a single call. // This defines the number of items that are to be deleted in a single call.
// Reduce this value when you are getting memory issues. // Reduce this value when you are getting memory issues.
'dbclean-expire-limit' => 1000, 'dbclean-expire-limit' => 1000,
// diaspora_test (Boolean) // diaspora_test (Boolean)
// For development only. Disables the message transfer. // For development only. Disables the message transfer.
'diaspora_test' => false, 'diaspora_test' => false,
// disable_email_validation (Boolean) // disable_email_validation (Boolean)
// Disables the check if a mail address is in a valid format and can be resolved via DNS. // Disables the check if a mail address is in a valid format and can be resolved via DNS.
'disable_email_validation' => false, 'disable_email_validation' => false,
// disable_url_validation (Boolean) // disable_url_validation (Boolean)
// Disables the DNS lookup of an URL. // Disables the DNS lookup of an URL.
'disable_url_validation' => false, 'disable_url_validation' => false,
// disable_password_exposed (Boolean) // disable_password_exposed (Boolean)
// Disable the exposition check against the remote haveibeenpwned API on password change. // Disable the exposition check against the remote haveibeenpwned API on password change.
'disable_password_exposed' => false, 'disable_password_exposed' => false,
// disable_polling (Boolean) // disable_polling (Boolean)
// Disable the polling of DFRN and OStatus contacts through onepoll.php. // Disable the polling of DFRN and OStatus contacts through onepoll.php.
'disable_polling' => false, 'disable_polling' => false,
// dlogfile (Path) // dlogfile (Path)
// location of the developer log file. // location of the developer log file.
'dlogfile' => '', 'dlogfile' => '',
// dlogip (String) // dlogip (String)
// restricts develop log writes to requests originating from this IP address. // restricts develop log writes to requests originating from this IP address.
'dlogip' => '', 'dlogip' => '',
// free_crawls (Integer) // free_crawls (Integer)
// Number of "free" searches when system => permit_crawling is enabled. // Number of "free" searches when system => permit_crawling is enabled.
'free_crawls' => 10, 'free_crawls' => 10,
// frontend_worker_timeout (Integer) // frontend_worker_timeout (Integer)
// Value in minutes after we think that a frontend task was killed by the webserver. // Value in minutes after we think that a frontend task was killed by the webserver.
'frontend_worker_timeout' => 10, 'frontend_worker_timeout' => 10,
// groupedit_image_limit (Integer) // groupedit_image_limit (Integer)
// Number of contacts at which the group editor should switch from display the profile pictures of the contacts to only display the names. // Number of contacts at which the group editor should switch from display the profile pictures of the contacts to only display the names.
// This can alternatively be set on a per account basis in the pconfig table. // This can alternatively be set on a per account basis in the pconfig table.
'groupedit_image_limit' => 400, 'groupedit_image_limit' => 400,
// hsts (Boolean) // hsts (Boolean)
// Enables the sending of HTTP Strict Transport Security headers. // Enables the sending of HTTP Strict Transport Security headers.
'hsts' => false, 'hsts' => false,
// ignore_cache (Boolean) // ignore_cache (Boolean)
// For development only. Disables the item cache. // For development only. Disables the item cache.
'ignore_cache' => false, 'ignore_cache' => false,
// instances_social_key (String) // instances_social_key (String)
// Key to the API of https://instances.social which retrieves data about mastodon servers. // Key to the API of https://instances.social which retrieves data about mastodon servers.
// See https://instances.social/api/token to get an API key. // See https://instances.social/api/token to get an API key.
'instances_social_key' => '', 'instances_social_key' => '',
// ipv4_resolve (Boolean) // ipv4_resolve (Boolean)
// Resolve IPV4 addresses only. Don't resolve to IPV6. // Resolve IPV4 addresses only. Don't resolve to IPV6.
'ipv4_resolve' => false, 'ipv4_resolve' => false,
// invitation_only (Boolean) // invitation_only (Boolean)
// If set true registration is only possible after a current member of the node has send an invitation. // If set true registration is only possible after a current member of the node has send an invitation.
'invitation_only' => false, 'invitation_only' => false,
// like_no_comment (Boolean) // like_no_comment (Boolean)
// Don't update the "commented" value of an item when it is liked. // Don't update the "commented" value of an item when it is liked.
'like_no_comment' => false, 'like_no_comment' => false,
// local_block (Boolean) // local_block (Boolean)
// Used in conjunction with "block_public". // Used in conjunction with "block_public".
'local_block' => false, 'local_block' => false,
// local_search (Boolean) // local_search (Boolean)
// Blocks search for users who are not logged in to prevent crawlers from blocking your system. // Blocks search for users who are not logged in to prevent crawlers from blocking your system.
'local_search' => false, 'local_search' => false,
// local_tags (Boolean) // local_tags (Boolean)
// If activated, all hashtags will point to the local server. // If activated, all hashtags will point to the local server.
'local_tags' => false, 'local_tags' => false,
// max_batch_queue (Integer) // max_batch_queue (Integer)
// Maximum number of batched queue items for a single contact before subsequent messages are discarded. // Maximum number of batched queue items for a single contact before subsequent messages are discarded.
'max_batch_queue' => 1000, 'max_batch_queue' => 1000,
// max_connections (Integer) // max_connections (Integer)
// The maximum number of database connections which can be in use before the worker process is deferred to its next interval. // The maximum number of database connections which can be in use before the worker process is deferred to its next interval.
// When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection. // When the system can't detect the maximum numbers of connection then this value can be used. Use 0 for auto-detection.
'max_connections' => 0, 'max_connections' => 0,
// max_connections_level (Integer 0-100) // max_connections_level (Integer 0-100)
// The maximum percentage of connections that are allowed to let the worker start. // The maximum percentage of connections that are allowed to let the worker start.
'max_connections_level' => 75, 'max_connections_level' => 75,
// max_contact_queue (Integer) // max_contact_queue (Integer)
// Maximum number of queue items for a single contact before subsequent messages are discarded. // Maximum number of queue items for a single contact before subsequent messages are discarded.
'max_contact_queue' => 500, 'max_contact_queue' => 500,
// max_image_length (Integer) // max_image_length (Integer)
// An alternate way of limiting picture upload sizes. // An alternate way of limiting picture upload sizes.
// Specify the maximum pixel length that pictures are allowed to be (for non-square pictures, it will apply to the longest side). // Specify the maximum pixel length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
// Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately). // Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
// If you don't want to set a maximum length, set to -1. // If you don't want to set a maximum length, set to -1.
'max_image_length' => -1, 'max_image_length' => -1,
// max_processes_backend (Integer) // max_processes_backend (Integer)
// Maximum number of concurrent database processes for background tasks. // Maximum number of concurrent database processes for background tasks.
'max_processes_backend' => 5, 'max_processes_backend' => 5,
// max_processes_frontend (Integer) // max_processes_frontend (Integer)
// Maximum number of concurrent database processes for foreground tasks. // Maximum number of concurrent database processes for foreground tasks.
'max_processes_frontend' => 20, 'max_processes_frontend' => 20,
// maximagesize (Integer) // maximagesize (Integer)
// Maximum size in bytes of an uploaded photo. // Maximum size in bytes of an uploaded photo.
'maximagesize' => 800000, 'maximagesize' => 800000,
// memcache_host (String) // memcache_host (String)
// Host name of the memcache daemon. // Host name of the memcache daemon.
'memcache_host' => '127.0.0.1', 'memcache_host' => '127.0.0.1',
// memcache_port (Integer) // memcache_port (Integer)
// Port number of the memcache daemon. // Port number of the memcache daemon.
'memcache_port' => 11211, 'memcache_port' => 11211,
// memcached_hosts (Array) // memcached_hosts (Array)
// Array of Memcached servers info [host, port(, weight)], see Memcached::addServers. // Array of Memcached servers info [host, port(, weight)], see Memcached::addServers.
'memcached_hosts' => [ 'memcached_hosts' => [
['127.0.0.1', '11211'], ['127.0.0.1', '11211'],
], ],
// min_poll_interval (Integer) // min_poll_interval (Integer)
// minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59. // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
'min_poll_interval' => 1, 'min_poll_interval' => 1,
// no_count (Boolean) // no_count (Boolean)
// Don't do count calculations (currently only when showing photo albums). // Don't do count calculations (currently only when showing photo albums).
'no_count' => false, 'no_count' => false,
// no_oembed (Boolean) // no_oembed (Boolean)
// Don't use OEmbed to fetch more information about a link. // Don't use OEmbed to fetch more information about a link.
'no_oembed' => false, 'no_oembed' => false,
// no_smilies (Boolean) // no_smilies (Boolean)
// Don't show smilies. // Don't show smilies.
'no_smilies' => false, 'no_smilies' => false,
// no_view_full_size (Boolean) // no_view_full_size (Boolean)
// Don't add the link "View full size" under a resized image. // Don't add the link "View full size" under a resized image.
'no_view_full_size' => false, 'no_view_full_size' => false,
// optimize_items (Boolean) // optimize_items (Boolean)
// Triggers an SQL command to optimize the item table before expiring items. // Triggers an SQL command to optimize the item table before expiring items.
'optimize_items' => false, 'optimize_items' => false,
// paranoia (Boolean) // paranoia (Boolean)
// Log out users if their IP address changed. // Log out users if their IP address changed.
'paranoia' => false, 'paranoia' => false,
// permit_crawling (Boolean) // permit_crawling (Boolean)
// Restricts the search for not logged in users to one search per minute. // Restricts the search for not logged in users to one search per minute.
'permit_crawling' => false, 'permit_crawling' => false,
// pidfile (Path) // pidfile (Path)
// Daemon pid file path. For example: pidfile = /path/to/daemon.pid // Daemon pid file path. For example: pidfile = /path/to/daemon.pid
'pidfile' => '', 'pidfile' => '',
// png_quality (Integer) // png_quality (Integer)
// Sets the ImageMagick compression level for PNG images. Values ranges from 0 (uncompressed) to 9 (most compressed). // Sets the ImageMagick compression level for PNG images. Values ranges from 0 (uncompressed) to 9 (most compressed).
'png_quality' => 8, 'png_quality' => 8,
// profiler (Boolean) // profiler (Boolean)
// Enable internal timings to help optimize code. Needed for "rendertime" addon. // Enable internal timings to help optimize code. Needed for "rendertime" addon.
'profiler' => false, 'profiler' => false,
// proxy_cache_time (Integer) // proxy_cache_time (Integer)
// Period in seconds after which the cache is cleared. // Period in seconds after which the cache is cleared.
'proxy_cache_time' => 86400, 'proxy_cache_time' => 86400,
// pushpoll_frequency (Integer) // pushpoll_frequency (Integer)
// Frequency of contact poll for subhub contact using the DFRM or OStatus network. // Frequency of contact poll for subhub contact using the DFRM or OStatus network.
// Available values: // Available values:
// - 5 = every month // - 5 = every month
// - 4 = every week // - 4 = every week
// - 3 = every day // - 3 = every day
// - 2 = twice a day // - 2 = twice a day
// - 1 = every hour // - 1 = every hour
// - 0 = every minute // - 0 = every minute
'pushpoll_frequency' => 3, 'pushpoll_frequency' => 3,
// queue_no_dead_check (Boolean) // queue_no_dead_check (Boolean)
// Ignore if the target contact or server seems to be dead during queue delivery. // Ignore if the target contact or server seems to be dead during queue delivery.
'queue_no_dead_check' => false, 'queue_no_dead_check' => false,
// redis_host (String) // redis_host (String)
// Host name of the redis daemon. // Host name of the redis daemon.
'redis_host' => '127.0.0.1', 'redis_host' => '127.0.0.1',
// redis_port (String) // redis_port (String)
// Port number of the redis daemon. // Port number of the redis daemon.
'redis_port' => 6379, 'redis_port' => 6379,
// session_handler (database|cache|native) // session_handler (database|cache|native)
// Whether to use Cache to store session data or to use PHP native session storage. // Whether to use Cache to store session data or to use PHP native session storage.
'session_handler' => 'database', 'session_handler' => 'database',
// remove_multiplicated_lines (Boolean) // remove_multiplicated_lines (Boolean)
// If enabled, multiple linefeeds in items are stripped to a single one. // If enabled, multiple linefeeds in items are stripped to a single one.
'remove_multiplicated_lines' => false, 'remove_multiplicated_lines' => false,
// sendmail_params (Boolean) // sendmail_params (Boolean)
// Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails. // Normal sendmail command parameters will be added when the PHP mail() function is called for sending e-mails.
// This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address. // This ensures the Sender Email address setting is applied to the message envelope rather than the host's default address.
// Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address. // Set to false if your non-sendmail agent is incompatible, or to restore old behavior of using the host address.
'sendmail_params' => true, 'sendmail_params' => true,
// show_global_community_hint (Boolean) // show_global_community_hint (Boolean)
// When the global community page is enabled, use this option to display a hint above the stream, that this is a collection of all public top-level postings that arrive on your node. // When the global community page is enabled, use this option to display a hint above the stream, that this is a collection of all public top-level postings that arrive on your node.
'show_global_community_hint' => false, 'show_global_community_hint' => false,
// show_unsupported_addons (Boolean) // show_unsupported_addons (Boolean)
// Show all addons including the unsupported ones. // Show all addons including the unsupported ones.
'show_unsupported_addons' => false, 'show_unsupported_addons' => false,
// show_unsupported_themes (Boolean) // show_unsupported_themes (Boolean)
// Show all themes including the unsupported ones. // Show all themes including the unsupported ones.
'show_unsupported_themes' => false, 'show_unsupported_themes' => false,
// throttle_limit_day (Integer) // throttle_limit_day (Integer)
// Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling. // Maximum number of posts that a user can send per day with the API. 0 to disable daily throttling.
'throttle_limit_day' => 0, 'throttle_limit_day' => 0,
// throttle_limit_week (Integer) // throttle_limit_week (Integer)
// Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling. // Maximum number of posts that a user can send per week with the API. 0 to disable weekly throttling.
'throttle_limit_week' => 0, 'throttle_limit_week' => 0,
// throttle_limit_month (Integer) // throttle_limit_month (Integer)
// Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling. // Maximum number of posts that a user can send per month with the API. 0 to disable monthly throttling.
'throttle_limit_month' => 0, 'throttle_limit_month' => 0,
// urlpath (String) // urlpath (String)
// If you are using a subdirectory of your domain you will need to put the relative path (from the root of your domain) here. // If you are using a subdirectory of your domain you will need to put the relative path (from the root of your domain) here.
// For instance if your URL is 'http://example.com/directory/subdirectory', set urlpath to 'directory/subdirectory'. // For instance if your URL is 'http://example.com/directory/subdirectory', set urlpath to 'directory/subdirectory'.
'urlpath' => '', 'urlpath' => '',
// username_min_length (Integer) // username_min_length (Integer)
// The minimum character length a username can be. // The minimum character length a username can be.
// This length is check once the username has been trimmed and multiple spaces have been collapsed into one. // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
// Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars. // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
'username_min_length' => 3, 'username_min_length' => 3,
// username_max_length (Integer) // username_max_length (Integer)
// The maximum character length a username can be. // The maximum character length a username can be.
// This length is check once the username has been trimmed and multiple spaces have been collapsed into one. // This length is check once the username has been trimmed and multiple spaces have been collapsed into one.
// Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars. // Minimum for this config value is 1. Maximum is 64 as the resulting profile URL mustn't be longer than 255 chars.
'username_max_length' => 48, 'username_max_length' => 48,
// worker_cooldown (Integer) // worker_cooldown (Integer)
// Cooldown period in seconds after each worker function call. // Cooldown period in seconds after each worker function call.
'worker_cooldown' => 0, 'worker_cooldown' => 0,
// worker_debug (Boolean) // worker_debug (Boolean)
// If enabled, it prints out the number of running processes split by priority. // If enabled, it prints out the number of running processes split by priority.
'worker_debug' => false, 'worker_debug' => false,
// worker_fetch_limit (Integer) // worker_fetch_limit (Integer)
// Number of worker tasks that are fetched in a single query. // Number of worker tasks that are fetched in a single query.
'worker_fetch_limit' => 1, 'worker_fetch_limit' => 1,
// worker_load_exponent (Integer) // worker_load_exponent (Integer)
// Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load. // Default 3, which allows only 25% of the maximum worker queues when server load reaches around 37% of maximum load.
// For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1. // For a linear response where 25% of worker queues are allowed at 75% of maximum load, set this to 1.
// Setting 0 would allow maximum worker queues at all times, which is not recommended. // Setting 0 would allow maximum worker queues at all times, which is not recommended.
'worker_load_exponent' => 3, 'worker_load_exponent' => 3,
// xrd_timeout (Integer) // xrd_timeout (Integer)
// Timeout in seconds for fetching the XRD links. // Timeout in seconds for fetching the XRD links.
'xrd_timeout' => 20, 'xrd_timeout' => 20,
], ],
'experimental' => [ 'experimental' => [
// exp_themes (Boolean) // exp_themes (Boolean)
// Show experimental themes in user settings. // Show experimental themes in user settings.
'exp_themes' => false, 'exp_themes' => false,
], ],
'theme' => [ 'theme' => [
// hide_eventlist (Boolean) // hide_eventlist (Boolean)
// Don't show the birthdays and events on the profile and network page. // Don't show the birthdays and events on the profile and network page.
'hide_eventlist' => false, 'hide_eventlist' => false,
], ],
'jabber' => [ 'jabber' => [
// debug (Boolean) // debug (Boolean)
// Enable debug level for the jabber account synchronisation. // Enable debug level for the jabber account synchronisation.
'debug' => false, 'debug' => false,
// lockpath (Path) // lockpath (Path)
// Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes. // Must be writable by the ejabberd process. if set then it will prevent the running of multiple processes.
'lockpath' => '', 'lockpath' => '',
], ],
]; ];

View File

@ -1,44 +1,44 @@
<?php <?php
// Local configuration // Local configuration
/* If automatic system installation fails: /* If automatic system installation fails:
* *
* Copy this file to local.config.php * Copy this file to local.config.php
* *
* Why local.config.php? Because it contains sensitive information which could * Why local.config.php? Because it contains sensitive information which could
* give somebody complete control of your database. Apache's default * give somebody complete control of your database. Apache's default
* configuration will interpret any .php file as a script and won't show the values * configuration will interpret any .php file as a script and won't show the values
* *
* Then set the following for your MySQL installation * Then set the following for your MySQL installation
* *
* If you're unsure about what any of the config keys below do, please check the config/defaults.config.php file for * If you're unsure about what any of the config keys below do, please check the config/defaults.config.php file for
* detailed documentation of their data type and behavior. * detailed documentation of their data type and behavior.
*/ */
return [ return [
'database' => [ 'database' => [
'hostname' => 'localhost', 'hostname' => 'localhost',
'username' => 'mysqlusername', 'username' => 'mysqlusername',
'password' => 'mysqlpassword', 'password' => 'mysqlpassword',
'database' => 'mysqldatabasename', 'database' => 'mysqldatabasename',
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
], ],
// **************************************************************** // ****************************************************************
// The configuration below will be overruled by the admin panel. // The configuration below will be overruled by the admin panel.
// Changes made below will only have an effect if the database does // Changes made below will only have an effect if the database does
// not contain any configuration for the friendica system. // not contain any configuration for the friendica system.
// **************************************************************** // ****************************************************************
'config' => [ 'config' => [
'admin_email' => '', 'admin_email' => '',
'sitename' => 'Friendica Social Network', 'sitename' => 'Friendica Social Network',
'register_policy' => REGISTER_OPEN, 'register_policy' => REGISTER_OPEN,
'register_text' => '', 'register_text' => '',
], ],
'system' => [ 'system' => [
'default_timezone' => 'UTC', 'default_timezone' => 'UTC',
'language' => 'en', 'language' => 'en',
], ],
]; ];

View File

@ -1,113 +1,113 @@
<?php <?php
// SETTINGS.PHP // SETTINGS.PHP
/* This file declares the default values for the admin settings of Friendica. /* This file declares the default values for the admin settings of Friendica.
* *
* These values will be overridden by the admin settings page. * These values will be overridden by the admin settings page.
* *
* Please don't edit this file directly as its content may change in the upcoming versions. * Please don't edit this file directly as its content may change in the upcoming versions.
*/ */
return [ return [
'config' => [ 'config' => [
// info (String) // info (String)
// Plaintext description of this node, used in the /friendica module. // Plaintext description of this node, used in the /friendica module.
'info' => '', 'info' => '',
// register_policy (Constant) // register_policy (Constant)
// Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED. // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
// Be certain to create your own personal account before setting REGISTER_CLOSED. // Be certain to create your own personal account before setting REGISTER_CLOSED.
// REGISTER_APPROVE requires you set system.admin_email to the email address of an already registered person who can authorize and/or approve/deny the request. // REGISTER_APPROVE requires you set system.admin_email to the email address of an already registered person who can authorize and/or approve/deny the request.
'register_policy' => REGISTER_CLOSED, 'register_policy' => REGISTER_CLOSED,
// register_text (String) // register_text (String)
// Will be displayed prominently on the registration page. // Will be displayed prominently on the registration page.
'register_text' => '', 'register_text' => '',
// sitename (String) // sitename (String)
// Displayed server name. // Displayed server name.
'sitename' => 'Friendica Social Network', 'sitename' => 'Friendica Social Network',
], ],
'system' => [ 'system' => [
// account_abandon_days (Integer) // account_abandon_days (Integer)
// Will not waste system resources polling external sites for abandonded accounts. // Will not waste system resources polling external sites for abandonded accounts.
// Enter 0 for no time limit. // Enter 0 for no time limit.
'account_abandon_days' => 0, 'account_abandon_days' => 0,
// addon (Comma-separated list) // addon (Comma-separated list)
// Manual list of addons which are enabled on this system. // Manual list of addons which are enabled on this system.
'addon' => '', 'addon' => '',
// allowed_themes (Comma-separated list) // allowed_themes (Comma-separated list)
// Themes users can change to in their settings. // Themes users can change to in their settings.
'allowed_themes' => 'quattro,vier,duepuntozero,smoothly', 'allowed_themes' => 'quattro,vier,duepuntozero,smoothly',
// default_timezone (String) // default_timezone (String)
// Choose a default timezone. See https://secure.php.net/manual/en/timezones.php // Choose a default timezone. See https://secure.php.net/manual/en/timezones.php
// It only applies to timestamps for anonymous viewers. // It only applies to timestamps for anonymous viewers.
'default_timezone' => 'UTC', 'default_timezone' => 'UTC',
// directory (String) // directory (String)
// URL of the global directory. // URL of the global directory.
'directory' => 'https://dir.friendica.social', 'directory' => 'https://dir.friendica.social',
// forbidden_nicknames (Comma-separated list) // forbidden_nicknames (Comma-separated list)
// Prevents users from registering the specified nicknames on this node. // Prevents users from registering the specified nicknames on this node.
// Default value comprises classic role names from RFC 2142. // Default value comprises classic role names from RFC 2142.
'forbidden_nicknames' => 'info, marketing, sales, support, abuse, noc, security, postmaster, hostmaster, usenet, news, webmaster, www, uucp, ftp, root, sysop', 'forbidden_nicknames' => 'info, marketing, sales, support, abuse, noc, security, postmaster, hostmaster, usenet, news, webmaster, www, uucp, ftp, root, sysop',
// jpeg_quality (Integer) // jpeg_quality (Integer)
// Sets the ImageMagick quality level for JPEG images. Values ranges from 50 (awful) to 100 (near perfect). // Sets the ImageMagick quality level for JPEG images. Values ranges from 50 (awful) to 100 (near perfect).
'jpeg_quality' => 100, 'jpeg_quality' => 100,
// language (String) // language (String)
// System default languague, inluding admin-created user default language. // System default languague, inluding admin-created user default language.
// Two-letters ISO 639-1 code. // Two-letters ISO 639-1 code.
'language' => 'en', 'language' => 'en',
// max_image_length (Integer) // max_image_length (Integer)
// An alternate way of limiting picture upload sizes. // An alternate way of limiting picture upload sizes.
// Specify the maximum pixel length that pictures are allowed to be (for non-square pictures, it will apply to the longest side). // Specify the maximum pixel length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
// Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately). // Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately).
// If you don't want to set a maximum length, set to -1. // If you don't want to set a maximum length, set to -1.
'max_image_length' => -1, 'max_image_length' => -1,
// maximagesize (Integer) // maximagesize (Integer)
// Maximum size in bytes of an uploaded photo. // Maximum size in bytes of an uploaded photo.
'maximagesize' => 800000, 'maximagesize' => 800000,
// no_regfullname (Boolean) // no_regfullname (Boolean)
// Allow pseudonyms (true) or enforce a space between first name and last name in Full name, as an anti spam measure (false). // Allow pseudonyms (true) or enforce a space between first name and last name in Full name, as an anti spam measure (false).
'no_regfullname' => true, 'no_regfullname' => true,
// optimize_max_tablesize (Integer) // optimize_max_tablesize (Integer)
// Maximum table size (in MB) for the automatic optimization. // Maximum table size (in MB) for the automatic optimization.
// -1 to disable automatic optimization. // -1 to disable automatic optimization.
// 0 to use internal default (100MB) // 0 to use internal default (100MB)
'optimize_max_tablesize' => -1, 'optimize_max_tablesize' => -1,
// rino_encrypt (Integer) // rino_encrypt (Integer)
// Server-to-server private message encryption (RINO). // Server-to-server private message encryption (RINO).
// Encryption will only be provided if this setting is set to a non zero value on both servers. // Encryption will only be provided if this setting is set to a non zero value on both servers.
// Set to 0 to disable, 2 to enable, 1 is deprecated but won't need mcrypt. // Set to 0 to disable, 2 to enable, 1 is deprecated but won't need mcrypt.
'rino_encrypt' => 2, 'rino_encrypt' => 2,
// temppath (String) // temppath (String)
// Custom temporary file directory // Custom temporary file directory
'temppath' => '', 'temppath' => '',
// theme (String) // theme (String)
// System theme name. // System theme name.
'theme' => 'vier', 'theme' => 'vier',
// url (String) // url (String)
// The fully-qualified URL of this Friendica node. // The fully-qualified URL of this Friendica node.
// Used by the worker in a non-HTTP execution environment. // Used by the worker in a non-HTTP execution environment.
'url' => '', 'url' => '',
], ],
// Used in the admin settings to lock certain features // Used in the admin settings to lock certain features
'featurelock' => [ 'featurelock' => [
], ],
]; ];