↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Read this page for FileRun 2026.3.0

Advanced configuration

Most of the configuration is done from FileRun's control panel.

However, there are additional configuration options that can be set from a configuration file.

The location of the configuration file is customizables/config.php.

Create the file if it does not exist.

Important

The file needs to start with <?php on the first line.

Do not end the file with ?>!

User Interface Options

 1$config['app']['quick_tags'] = [
 2    ['color' => 'green', 'text' => 'approved'],
 3    ['color' => 'orange', 'text' => 'pending'],
 4    ['color' => 'red', 'text' => 'rejected'],
 5    'filerun',
 6    'yellow'
 7];

Define the quick tags. An empty list, [], turns the quick tags off: the right-click menu does not show Quick tag.

 1$config['app']['ui']['grid_short_date'] = false;

Shows the column Modified (ISO 8601) instead of Modified in the file list, and makes the column Trash: Date deleted show the full date instead of the short one. The default is true: the list shows Modified, with the short date, and the full date in a tooltip.

Only the default columns change. A column that a user showed or hid with Choose details stays as the user chose. See Columns.

 1$config['app']['ui']['custom_js_url'] = 'http://your-website/your.js';

Add custom JavaScript code to the FileRun UI. You can also skip this and create the file "customizables/theme.css" and enable it from under the FileRun control panel section "Interface → Branding → Theme".

 1$config['app']['hidden_file_names'][] = "_*";

Hides files and folders whose names are starting with "_", only in the regular user interface. You can add multiple configuration lines like this one, for various filename patterns. Hidden files and folders will still be visible and accessible via the API, WebDAV and apps. Hidden files and folders can be created and uploaded by users, even if they don't show in the list. Downloading a folder containing hidden files and folders, will not include these files.

 1$config['app']['excluded_filenames'][] = 'Thumbs.db';

Leaves out the files and folders named "Thumbs.db", as FileRun does with the names that start with .filerun., which it keeps for its own files. They are not listed in the web interface, the API or WebDAV, they cannot be opened, and they are left out of Zip downloads, folder copies and folder sizes. Creating, uploading or renaming an item with such a name is refused with "You are not allowed to use this file name!".

You can add several lines like this one, with patterns such as *.tmp. Unlike hidden_file_names, which hides names in the regular user interface only, these names are left out of the API and WebDAV too, and the users cannot create them. By default, only the names that start with .filerun. are left out.

 1$config['app']['upload']['max_simultaneous'] = 3;

The number of files that the browser uploads at the same time. The other files wait in the upload panel as Queued. The default is 6. When the browser reports a slow connection, such as 3G, it uploads one file at a time, whatever the value.

 1$config['app']['upload']['max_retries'] = 5;

How many times the browser tries again to send a file, or a part of a large file, after the transfer failed, for example because of the network. The item shows Waiting to retry between the attempts, and Failed after the last one. The default is 3. With 0, the browser does not try again by itself. While the browser is offline, it keeps waiting, and the attempts are not counted. See When the connection fails.

 1$config['app']['upload']['chunk_size'] = 104857600;

The size, in bytes, of the pieces in which the browser sends a large file. The value replaces Upload chunk size of the control panel, and the minimum of 20 MB of that setting does not apply to it. See File settings.

 1$config['app']['ui']['date']['format'] = [
 2    'hour' => 'g:i A',
 3    'day' => 'd'
 4];

Changes the short dates that the file list shows, such as 14:05, Monday or Nov 16. Each key holds a format of the PHP function date(). The keys and their defaults are hour (H:i), recent_day (l, the name of the day, for the last week), month (M), day (j) and year (Y). A key that you leave out keeps its default.

 1$config['thumbs']['limit_file_size'] = 20971520;

If the thumbnail generation requires image resizing, this limits the resizing only to files larger than 20971520 bytes (20MB). ImageMagick can take a lot of hardware resources while trying to process very large files.

Web links

 1$now = new DateTime();
 2$nextWeek = $now->add(new DateInterval('P1W'));
 3$config['app']['weblinks']['defaults']['expiry'] = $nextWeek->format('Y-m-d');

Make weblinks expire by default after one week. For other time intervals, see http://php.net/manual/en/dateinterval.construct.php A date without a time, in the form Y-m-d, ends at the end of that day, as a date that the user chooses does. A value that is not a date stops the creation of the links with an error.

 1$config['app']['weblinks']['forcePasswords'] = true;

Every web link gets a password. FileRun does not ask the user for one. When a user creates a web link without a password, FileRun generates a password. When a user removes the password of a web link, FileRun generates a new one. The user finds the password in the advanced settings of the link, in the field Set a password.

 1$config['app']['weblinks']['logging']['folder_access']['disable'] = true;

Disables logging of accesses made to Web Linked folders.

 1$config['app']['weblinks']['showQRCode'] = false;

Hides QR Code in the menu of the Copy link button of the sharing panel. The default is true, the item is shown. See The QR code.

Admin and security

 1$config['app']['signup']['unique_company'] = true;

Force users to type a unique company name at registration.

 1$config['app']['admin']['users']['delete']['skipHomeFolderSubCheck'] = true;

Allows you to delete one user's home folder when you are deleting the user accounts, even if the user's home folder contains other users' home folders. We recommend you not to use this option, to avoid accidental file loss.

 1$config['app']['allow_cleaning_of_newer_files'] = true;

Lets the script cron/delete_old_files.php delete files younger than 30 days. The smallest file age it accepts is then 1 second. See Deleting old files.

 1$config['app']['login']['restrict_ip']['admin'] = "192.168.0.1";

Limit the access of user "admin" to IP address "192.168.0.1". You can configure as many users as you want. The value can also be an array of multiple IP addresses (Example: ['192.168.0.1', '192.168.0.2'])

 1$config['app']['login']['restrict_ip']['admin'] = "192.168.1.0/24";

Limit the access of user "admin" to IP address range "192.168.1.*" using a 24 bit subnet mask. These formats can be used, for IPv4 and for IPv6:

  1. One address: 1.2.3.4, or 2001:db8::1
  2. CIDR format: 1.2.3.0/24, or 2001:db8::/32. For IPv4, also 1.2.3/24 or 1.2.3.4/255.255.255.0
  3. Start-End IP format: 1.2.3.0-1.2.3.255, or 2001:db8::1-2001:db8::ff
  4. Wildcard format, for IPv4 only: 1.2.3.*

An IPv4 address never matches an IPv6 range, and an IPv6 address never matches an IPv4 range. A value that is not in one of these formats matches no address.

 1$config['system']['auth']['app_password_expiration'] = 'P1Y';

Makes the new app passwords expire one year after they are created. The value is an ISO 8601 duration, such as P6M for six months or P90D for 90 days. The default is P2Y, two years. The app passwords created before the change keep their expiry date. See App passwords.

 1$config['system']['auth']['app_password_default_app_name'] = 'Nextcloud app';

The name of an app password that is created without a name, as listed on the Connected apps page of the user's account settings. Such a password is the one that a program gets when the user approves the connection in the browser, or one that the superuser creates through the API without a name. The default is App. The name applies to the app passwords created after the change.

 1$config['app']['ui']['show_connect_app'] = false;

Hides Connect app in the menu of the user's name, and the Connect app button at the top of the Connected apps page. The page still lists the connected apps, and the users can still revoke them. A program that asks for the FileRun address still connects through the browser. By default, Connect app is shown, except to guest accounts, when Enable API, WebDAV or Mobile and desktop apps is on. See App passwords.

 1$config['app']['logging']['skip_receive_download'] = true;

Stops FileRun from logging, for the other users, that somebody downloaded a file.

When a user acts on a file or a folder, FileRun writes the record in that user's own activity log. It then looks for every other active account whose home folder contains that file, and writes a second record in the activity log of each one, so that those users see what somebody else did to a file they can also reach. These second records are named after the action: receive_download, receive_upload, receive_file_moved, receive_comment_added, and so on. The Activity log actions page lists all of them. Nothing is written for actions performed inside the trash.

The option exists once per action. Replace download with the name of the action you want to leave out:

 1$config['app']['logging']['skip_receive_upload'] = true;
 2$config['app']['logging']['skip_receive_preview'] = true;

To leave out all of them at once:

 1$config['app']['logging']['skip_receive_all'] = true;

This is useful when many users share the same home folder, or when an admin's home folder is the parent folder of everybody else's. Each action then writes one extra record for every account that can reach the file, and the activity log grows accordingly.

Two things change besides the size of the log:

  • Those users no longer see in their activity log what other users did to those files. The record written for the user who performed the action is not affected, and neither is the file activity log.
  • The e-mail notification rules built on those actions stop sending, because they are fed by these records. "A file has been downloaded by another user" is one of them.
 1$config['system']['email']['logging']['retention_days'] = 5;

Sets the number of days FileRun keeps the e-mail notification logs to 5. The default setting is 2.

 1$config['app']['email']['bcc_files'] = ['archive@example.com'];

Sends a hidden copy (BCC) of the share e-mails to the addresses of the list: the e-mails that tell users, groups and guests about a new share, and the e-mails to the new members of a shared drive. Each message that FileRun sends gets its own copy. The list can hold several addresses. By default, no copy is sent. See The notification e-mail and The e-mail to the new members.

When guests are allowed to sign in with links, the copies of the e-mails to the guests hold the link that signs the guest in. See Enable guest user access via links.

 1$config['Drive']['email_notification']['basic_actions'] = [
 2    'receive_download',
 3    'shared_folder_available',
 4    'shared_file_available',
 5    'receive_file_copy_created',
 6    'receive_upload',
 7    'receive_file_updated',
 8    'receive_comment_added',
 9    'receive_tag_added',
10    'space_quota_warning'
11];

These are the default actions FileRun is e-mailing users about when notifications are enabled. The names of all the actions are listed on the Activity log actions page, with the application in front of them (Drive.receive_download). This option belongs to that application, so it takes the names without it. Before FileRun 2026.4.0, the option was $config['app']['email_notification']['basic_actions'], which is no longer read.

 1$config['app']['sharing']['allow_read_notifications'] = true;
 2$config['app']['sharing']['allow_misc_notifications'] = true;

Allows the folder notification options Downloads and previews (the first line) and Other actions (the second line) inside the folders shared with the user and inside the shared drives. By default, FileRun refuses them there when the user saves the notification settings, with "You cannot be notified on downloads and previews inside shared folders!" and "You cannot be notified of other actions inside shared folders!". The owner of a folder can always use them on their own folder.

With Other actions allowed, the members of a shared drive can be told about the deletions, the renames and the new folders in the drive. See Folders shared with you.

System

 1$config['path']['trash'] = '/path/with/write/permission/';

Folder to store the trashed files and folders. The folder can be on a separate device, partition or file system: when a folder cannot be moved there directly, FileRun copies it and then deletes the original.

 1$config['Drive']['path']['file_variants'] = '/path/with/write/permission/';

Folder to keep the thumbnails and the document previews in. By default they are kept inside the installation folder, in system/data/temp/file_variants/Drive. Set this to keep them on a larger or a faster disk. Use an absolute path. When several web servers run the same installation, each server keeps its own thumbnails, unless this points to storage that they share.

Before FileRun 2026.4.0, the option was $config['path']['thumbnail_cache']. That option is no longer read. See Updating to 2026.4.

 1$config['app']['metadata']['indexing']['web']['max_files'] = 50;

Have FileRun index 50 files in a single HTTP request. The default is 20.

 1$config['app']['metadata']['disable_extraction'] = true;

Disable the metadata extraction (media indexing) on file upload.

 1$config['system']['http']['proxy'] = 'http://localhost:3128';

Make FileRun use a proxy for downloading software updates.

 1$config['app']['media']['documents']['library_root'] = '/Documents';
 2$config['app']['media']['photos']['library_root'] = '/Photos';
 3$config['app']['media']['videos']['library_root'] = '/Videos';
 4$config['app']['media']['audio']['library_root'] = '/Audio';

Set the relative subfolder path for the various media library roots.

Misc options

 1$config['app']['metadata']['search']['exclude_system_filetypes'] = true;

Hides the list of system default metadata file types (Audio, Documents, Photos, Videos) in the metadata file type search.

 1$config['app']['metadata']['search']['exclude_system_fields'] = true;

Hides the list of system default metadata fields (the ones that belong to the "Audio", "Documents", "Photos", "Videos" file types) in the metadata file search.

 1$config['system']['webdav']['skip_device_id_for_etag'] = true;

Use this when the storage device ID might change. This change happens when Docker volumes are remounted. So if the desktop app wants to re-sync files every time your Docker container restarts, use this option.