]> git.mxchange.org Git - friendica.git/blobdiff - static/defaults.config.php
Posts per author/server on the community pages (#13764)
[friendica.git] / static / defaults.config.php
index 4fb96cfce2bee2a7fc611a20e3d92a8e697fba5d..b33b30b562065e47abee6860b02912fa033397a4 100644 (file)
@@ -93,9 +93,9 @@ return [
                'php_path' => 'php',
        ],
        'system' => [
-               // adjust_poll_frequency (Boolean)
-               // Automatically detect and set the best feed poll frequency.
-               'adjust_poll_frequency' => false,
+               // add_missing_posts (boolean)
+               // Checks for missing entries in "post", "post-thread" or "post-thread-user" and creates them
+               'add_missing_posts' => false,
 
                // allowed_link_protocols (Array)
                // Allowed protocols in links URLs, add at your own risk. http(s) is always allowed.
@@ -106,13 +106,9 @@ return [
                'always_show_preview' => false,
 
                // ap_always_bcc (Boolean)
-               // Adresses non-mentioned ActivityPub receivers by BCC instead of CC. Increases privacy, decreases performance.
+               // Addresses non-mentioned ActivityPub receivers by BCC instead of CC. Increases privacy, decreases performance.
                'ap_always_bcc' => false,
 
-               // archival_days (Integer)
-               // Number of days that we try to deliver content before we archive a contact.
-               'archival_days' => 32,
-
                // auth_cookie_lifetime (Integer)
                // Number of days that should pass without any activity before a user who
                // chose "Remember me" when logging in is considered logged out.
@@ -132,9 +128,13 @@ return [
                // The value has to start with the scheme and end with a "/"
                'avatar_cache_url' => '',
 
+               // basicauth (Boolean)
+               // Controls if login via BasicAuth is possible (default is true)
+               'basicauth' => true,
+
                // big_emojis (Boolean)
                // Display "Emoji Only" posts in big.
-               'big_emojis' => false,
+               'big_emojis' => true,
 
                // bulk_delivery (Boolean)
                // Delivers AP messages in a bulk (experimental)
@@ -144,30 +144,14 @@ return [
                // Deny public access to the local user directory.
                'block_local_dir' => false,
 
-               // blocked_tags (String)
-               // Comma separated list of hashtags that shouldn't be displayed in the trending tags
-               'blocked_tags' => '',
-
-               // community_no_sharer (Boolean)
-               // Don't display sharing accounts on the global community
-               'community_no_sharer' => false,
-
                // contact_update_limit (Integer)
                // How many contacts should be checked at a time?
                'contact_update_limit' => 100,
 
-               // cron_interval (Integer)
-               // Minimal period in minutes between two calls of the "Cron" worker job.
-               'cron_interval' => 5,
-
                // cache_driver (database|memcache|memcached|redis|apcu)
                // Whether to use Memcache, Memcached, Redis or APCu to store temporary cache.
                'cache_driver' => 'database',
 
-               // decoupled_receiver (Boolean)
-               // Decouple incoming AP posts by doing the processing in the background.
-               'decoupled_receiver' => false,
-
                // distributed_cache_driver (database|memcache|memcached|redis)
                // Whether to use database, Memcache, Memcached or Redis as a distributed cache.
                'distributed_cache_driver' => 'database',
@@ -180,10 +164,6 @@ return [
                // Allow to switch the configuration adapter to improve performances at the cost of memory consumption.
                'config_adapter' => 'jit',
 
-               // curl_range_bytes (Integer)
-               // Maximum number of bytes that should be fetched. Default is 0, which mean "no limit".
-               'curl_range_bytes' => 0,
-
                // crawl_permit_period (Integer)
                // Period in seconds between allowed searches when the number of free searches is reached and "permit_crawling" is activated.
                'crawl_permit_period' => 60,
@@ -270,10 +250,6 @@ return [
                // Disable the exposition check against the remote haveibeenpwned API on password change.
                'disable_password_exposed' => false,
 
-               // disable_polling (Boolean)
-               // Disable the polling of DFRN and OStatus contacts through onepoll.php.
-               'disable_polling' => false,
-
                // display_resharer (Boolean)
                // Display the first resharer as icon and text on a reshared item.
                'display_resharer' => false,
@@ -286,18 +262,14 @@ return [
                // restricts develop log writes to requests originating from this IP address.
                'dlogip' => '',
 
-               // emoji_activities (Boolean)
-               // Display received activities (like, dislike, reshare) as emojis
-               'emoji_activities' => false,
+               // legacy_activities (Boolean)
+               // Display received activities (like, dislike, reshare) as detailed list
+               'legacy_activities' => true,
 
                // expire-notify-priority (integer)
-               // Priority for the expirary notification
+               // Priority for the expiry notification
                'expire-notify-priority' => Friendica\Core\Worker::PRIORITY_LOW,
 
-               // fetch_by_worker (Boolean)
-               // Fetch missing posts via a background process
-               'fetch_by_worker' => false,
-
                // fetch_featured_posts (Boolean)
                // Fetch featured posts from all contacts
                'fetch_featured_posts' => false,
@@ -306,10 +278,10 @@ return [
                // Number of "free" searches when system => permit_crawling is enabled.
                'free_crawls' => 10,
 
-               // 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.
+               // circle_edit_image_limit (Integer)
+               // Number of contacts at which the circle 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.
-               'groupedit_image_limit' => 400,
+               'circle_edit_image_limit' => 400,
 
                // gserver_update_limit (Integer)
                // How many servers should be checked at a time?
@@ -337,40 +309,29 @@ return [
                // Resolve IPV4 addresses only. Don't resolve to IPV6.
                'ipv4_resolve' => false,
 
+               // ini_max_execution_time (False|Integer)
+               // Set the number of seconds a script is allowed to run. Default unlimited for Friendica, false to use the system value.
+               'ini_max_execution_time' => 0,
+
+               // ini_pcre_backtrack_limit (False|Integer)
+               // This has to be quite large to deal with embedded private photos. False to use the system value.
+               'ini_pcre_backtrack_limit' => 500000,
+
                // invitation_only (Boolean)
                // If set true registration is only possible after a current member of the node has sent an invitation.
                'invitation_only' => false,
 
-               // itemspage_network (Integer)
-               // default number of items per page in stream pages (network, community, profile/contact statuses, search)
-               'itemspage_network' => 40,
-
-               // itemspage_network_mobile (Integer)
-               // default number of items per page in stream pages (network, community, profile/contact statuses, search)
-               // on detected mobile devices
-               'itemspage_network_mobile' => 20,
-
-               // jpeg_quality (Integer)
-               //
-               // Lower numbers save space at cost of image detail
-               // where n is between 1 and 100, and with very poor results below about 50
-               'jpeg_quality' => 100,
-
                // like_no_comment (Boolean)
                // Don't update the "commented" value of an item when it is liked.
                'like_no_comment' => false,
 
-               // local_block (Boolean)
-               // Used in conjunction with "block_public".
-               'local_block' => false,
-
-               // local_search (Boolean)
-               // Blocks search for users who are not logged in to prevent crawlers from blocking your system.
-               'local_search' => false,
+               // limited_servers (String)
+               // A comma separated list of server hostnames that should get limited profile data
+               'limited_servers' => '',
 
                // local_tags (Boolean)
                // If activated, all hashtags will point to the local server.
-               'local_tags' => false,
+               'local_tags' => true,
 
                // lock_driver (semaphore|database|memcache|memcached|redis|apcu)
                // Whether to use semaphores, the database, Memcache, Memcached, Redis or APCu to handle locks.
@@ -381,11 +342,11 @@ return [
                // Sets the logging adapter of Friendica globally (monolog, syslog, stream)
                'logger_config' => 'stream',
 
-               // syslog flags (Integer)
+               // syslog_flags (Integer)
                // Sets the syslog flags in case 'logger_config' is set to 'syslog'
                'syslog_flags' => LOG_CONS | LOG_PID | LOG_ODELAY,
 
-               // syslog flags (Integer)
+               // syslog_facility (Integer)
                // Sets the syslog facility in case 'logger_config' is set to 'syslog'
                'syslog_facility' => LOG_USER,
 
@@ -399,10 +360,6 @@ return [
                // The system timezone is used when no timezone is defined here.
                'maintenance_end' => '03:00 +00:00',
 
-               // max_batch_queue (Integer)
-               // Maximum number of batched queue items for a single contact before subsequent messages are discarded.
-               'max_batch_queue' => 1000,
-
                // max_connections (Integer)
                // 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.
@@ -412,10 +369,6 @@ return [
                // The maximum percentage of connections that are allowed to let the worker start.
                'max_connections_level' => 75,
 
-               // max_contact_queue (Integer)
-               // Maximum number of queue items for a single contact before subsequent messages are discarded.
-               'max_contact_queue' => 500,
-
                // max_csv_file_size (Integer)
                // When uploading a CSV with account addresses to follow
                // in the user settings, this controls the maximum file
@@ -445,14 +398,14 @@ return [
                // Maximum number of concurrent database processes for foreground tasks.
                'max_processes_frontend' => 20,
 
+               // max_receivers (Integer)
+               // The maximum number of displayed receivers of posts
+               'max_receivers' => 10,
+
                // max_recursion_depth (Integer)
                // Maximum recursion depth when fetching posts until the job is delegated to a worker task or finished.
                'max_recursion_depth' => 50,
 
-               // maximagesize (Integer)
-               // Maximum size in bytes of an uploaded photo.
-               'maximagesize' => 800000,
-
                // memcache_host (String)
                // Host name of the memcache daemon.
                'memcache_host' => '127.0.0.1',
@@ -467,10 +420,6 @@ return [
                        ['127.0.0.1', '11211'],
                ],
 
-               // min_poll_interval (Integer)
-               // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
-               'min_poll_interval' => 15,
-
                // minimum_posting_interval (Integer)
                // Minimum interval between two feed posts per user
                'minimum_posting_interval' => 0,
@@ -511,31 +460,16 @@ return [
                // Sets the ImageMagick compression level for PNG images. Values range from 0 (uncompressed) to 9 (most compressed).
                'png_quality' => 8,
 
-               // process_view (Boolean)
-               // Process the "View" activity that is used by Peertube. View activities are displayed, when "emoji_activities" are enabled.
-               'process_view' => false,
-
                // profiler (Boolean)
                // Enable internal timings to help optimize code. Needed for "rendertime" addon.
                'profiler' => false,
 
-               // pushpoll_frequency (Integer)
-               // Frequency of contact poll for subhub contact using the DFRM or OStatus network.
-               // Available values:
-               // - 5 = every month
-               // - 4 = every week
-               // - 3 = every day
-               // - 2 = twice a day
-               // - 1 = every hour
-               // - 0 = every minute
-               'pushpoll_frequency' => 3,
-
                // redis_host (String)
-               // Host name of the redis daemon.
+               // Host name or the path to the Unix domain socket of the Redis daemon.
                'redis_host' => '127.0.0.1',
 
-               // redis_port (String)
-               // Port number of the redis daemon.
+               // redis_port (Integer)
+               // Port number of the Redis daemon, should be -1 for unix domain socket
                'redis_port' => 6379,
 
                // redis_db (Integer)
@@ -550,14 +484,6 @@ return [
                // Redistribute incoming activities via ActivityPub
                'redistribute_activities' => true,
 
-               // relay_deny_languages (Array)
-               // Array of languages (two digit format) that are rejected.
-               'relay_deny_languages' => [],
-
-               // relay_deny_undetected_language (Boolean)
-               // Deny undetected languages
-               'relay_deny_undetected_language' => false,
-
                // session_handler (database|cache|native)
                // Whether to use Cache to store session data or to use PHP native session storage.
                'session_handler' => 'database',
@@ -621,13 +547,9 @@ return [
                'throttle_limit_month' => 0,
 
                // transmit_pending_events (Boolean)
-               // Transmit pending events upon accepted contact request for forums
+               // Transmit pending events upon accepted contact request for groups
                'transmit_pending_events' => false,
 
-               // update_active_contacts (Boolean)
-               // When activated, only public contacts will be activated regularly that are used for example in items or tags.
-               'update_active_contacts' => false,
-
                // username_min_length (Integer)
                // The minimum character length a username can be.
                // This length is checked once the username has been trimmed and multiple spaces have been collapsed into one.
@@ -648,10 +570,6 @@ return [
                // If enabled, it prints out the number of running processes split by priority.
                'worker_debug' => false,
 
-               // worker_fetch_limit (Integer)
-               // Number of worker tasks that are fetched in a single query.
-               'worker_fetch_limit' => 1,
-
                // worker_fork (Boolean)
                // Experimental setting. Use pcntl_fork to spawn a new worker process.
                // Does not work when "worker_multiple_fetch" is enabled (Needs more testing)
@@ -665,10 +583,6 @@ return [
                // List of minutes for the jobs per minute (JPM) calculation
                'worker_jpm_range' => '1, 10, 60',
 
-               // worker_load_cooldown (Integer)
-               // Maximum load that causes a cooldown before each worker function call.
-               'worker_load_cooldown' => 0,
-
                // worker_load_exponent (Integer)
                // 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.
@@ -695,10 +609,6 @@ return [
                // Does not work when "worker_fork" is enabled (Needs more testing)
                'worker_multiple_fetch' => false,
 
-               // worker_defer_limit (Integer)
-               // Per default the systems tries delivering for 15 times before dropping it.
-               'worker_defer_limit' => 15,
-
                // xrd_timeout (Integer)
                // Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout
                'xrd_timeout' => 20,
@@ -769,4 +679,19 @@ return [
                // By default the template cache is stored in several subdirectories.
                'use_sub_dirs' => true,
        ],
+       'api' => [
+               // mastodon_banner (String)
+               // Default banner image for Mastodon API, must be a relative path from the base Friendica folder
+               //
+               // Default picture credits:
+               // Author: Lostinlight <https://mastodon.xyz/@lightone>
+               // License: CC0 https://creativecommons.org/share-your-work/public-domain/cc0/
+               // Link to original work: https://gitlab.com/lostinlight/per_aspera_ad_astra/-/blob/master/friendica-404/friendica-promo-bubbles.jpg
+               'mastodon_banner' => '/images/friendica-banner.jpg',
+       ],
+       'blocklist' => [
+               // public (Boolean)
+               // Wether the blocklist is publicly listed under /about (or in any later API)
+               'public' => true,
+       ],
 ];