Your IP : 216.73.217.64
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Config.php Parameters — ownCloud 10.0.1 Server Administration Manual 10.0.1 documentation</title>
<link rel="stylesheet" href="../_static/" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/main.min.css" type="text/css" />
<link rel="stylesheet" href="../_static/styles.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '10.0.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../_static/js/jquery-fix.js"></script>
<script type="text/javascript" src="../_static/bootstrap-3.1.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
<link rel="top" title="ownCloud 10.0.1 Server Administration Manual 10.0.1 documentation" href="../contents.html" />
<link rel="up" title="Server Configuration" href="index.html" />
<link rel="next" title="Email Configuration" href="email_configuration.html" />
<link rel="prev" title="Background Jobs" href="background_jobs_configuration.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#1d2d44">
</head>
<body role="document">
<div class="wrap container not-front">
<div class="content row">
<main class="main">
<div class="row page-content-header">
<div class="col-md-5 col-md-offset-7">
<form class="headersearch" style="margin-bottom:-3px;" action="../search.html" method="get">
<input type="text" value="" name="q" id="q" class="form-control" />
<button class="btn btn-default" type="submit" id="searchsubmit">Search</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="sidebar">
<div class="menu-support-container">
<ul id="menu-support" class="menu">
<ul>
<li><a href="../contents.html">Table of Contents</a></li>
</ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="../release_notes.html">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../whats_new_admin.html">What’s New in ownCloud 10.0.1</a></li>
<li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_database/index.html">Database Configuration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_files/index.html">File Sharing and Management</a></li>
<li class="toctree-l1"><a class="reference internal" href="../maintenance/index.html">Maintenance</a></li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_mimetypes/index.html">Mimetypes Management</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Server Configuration</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="security_setup_warnings.html">Warnings on Admin Page</a></li>
<li class="toctree-l2"><a class="reference internal" href="import_ssl_cert.html">Importing System-wide and Personal SSL Certificates</a></li>
<li class="toctree-l2"><a class="reference internal" href="occ_command.html">Using the occ Command</a></li>
<li class="toctree-l2"><a class="reference internal" href="activity_configuration.html">Configuring the Activity App</a></li>
<li class="toctree-l2"><a class="reference internal" href="antivirus_configuration.html">Virus Scanner Support</a></li>
<li class="toctree-l2"><a class="reference internal" href="caching_configuration.html">Configuring Memory Caching</a></li>
<li class="toctree-l2"><a class="reference internal" href="background_jobs_configuration.html">Background Jobs</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="">Config.php Parameters</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#default-parameters">Default Parameters</a></li>
<li class="toctree-l3"><a class="reference internal" href="#default-config-php-examples">Default config.php Examples</a></li>
<li class="toctree-l3"><a class="reference internal" href="#user-experience">User Experience</a></li>
<li class="toctree-l3"><a class="reference internal" href="#mail-parameters">Mail Parameters</a></li>
<li class="toctree-l3"><a class="reference internal" href="#proxy-configurations">Proxy Configurations</a></li>
<li class="toctree-l3"><a class="reference internal" href="#deleted-items-trash-bin">Deleted Items (trash bin)</a></li>
<li class="toctree-l3"><a class="reference internal" href="#file-versions">File versions</a></li>
<li class="toctree-l3"><a class="reference internal" href="#owncloud-verifications">ownCloud Verifications</a></li>
<li class="toctree-l3"><a class="reference internal" href="#logging">Logging</a></li>
<li class="toctree-l3"><a class="reference internal" href="#alternate-code-locations">Alternate Code Locations</a></li>
<li class="toctree-l3"><a class="reference internal" href="#apps">Apps</a></li>
<li class="toctree-l3"><a class="reference internal" href="#previews">Previews</a></li>
<li class="toctree-l3"><a class="reference internal" href="#ldap">LDAP</a></li>
<li class="toctree-l3"><a class="reference internal" href="#comments">Comments</a></li>
<li class="toctree-l3"><a class="reference internal" href="#maintenance">Maintenance</a></li>
<li class="toctree-l3"><a class="reference internal" href="#ssl">SSL</a></li>
<li class="toctree-l3"><a class="reference internal" href="#memory-caching-backend-configuration">Memory caching backend configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="#using-object-store-with-owncloud">Using Object Store with ownCloud</a></li>
<li class="toctree-l3"><a class="reference internal" href="#sharing">Sharing</a></li>
<li class="toctree-l3"><a class="reference internal" href="#all-other-configuration-options">All other configuration options</a></li>
<li class="toctree-l3"><a class="reference internal" href="#app-config-options">App config options</a></li>
<li class="toctree-l3"><a class="reference internal" href="#overriding-existing-parameter-values-using-environment-variables">Overriding Existing Parameter Values Using Environment Variables</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="email_configuration.html">Email Configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="excluded_blacklisted_files.html">Excluding Directories and Blacklisting Files</a></li>
<li class="toctree-l2"><a class="reference internal" href="external_sites.html">Linking External Sites</a></li>
<li class="toctree-l2"><a class="reference internal" href="custom_client_repos.html">Custom Client Download Repositories</a></li>
<li class="toctree-l2"><a class="reference internal" href="knowledgebase_configuration.html">Knowledge Base Configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="language_configuration.html">Language Configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="logging_configuration.html">Logging Configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="harden_server.html">Hardening and Security Guidance</a></li>
<li class="toctree-l2"><a class="reference internal" href="reverse_proxy_configuration.html">Reverse Proxy Configuration</a></li>
<li class="toctree-l2"><a class="reference internal" href="thirdparty_php_configuration.html">Using Third Party PHP Components</a></li>
<li class="toctree-l2"><a class="reference internal" href="js_css_asset_management_configuration.html">JavaScript and CSS Asset Management</a></li>
<li class="toctree-l2"><a class="reference internal" href="automatic_configuration.html">Automatic Configuration Setup</a></li>
<li class="toctree-l2"><a class="reference internal" href="oc_server_tuning.html">ownCloud Server Tuning</a></li>
<li class="toctree-l2"><a class="reference internal" href="index_php_less_urls.html">Enable index.php-less URLs</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../configuration_user/index.html">User Management</a></li>
<li class="toctree-l1"><a class="reference internal" href="../issues/index.html">Issues and Troubleshooting</a></li>
<li class="toctree-l1"><a class="reference internal" href="../enterprise/index.html">Enterprise Features</a></li>
</ul>
</ul>
</div>
</div>
</div>
<div class="col-md-9">
<div class="page-content">
<ul class="prevnext-title list-unstyled list-inline">
<li class="prev">
<a href="background_jobs_configuration.html" title="Previous Chapter: Background Jobs"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Background Jobs</span>
</a>
</li>
<li class="next">
<a href="email_configuration.html" title="Next Chapter: Email Configuration"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Email Configu... »</span>
</a>
</li>
</ul>
<div class="section" id="config-php-parameters">
<h1>Config.php Parameters<a class="headerlink" href="#config-php-parameters" title="Permalink to this headline">¶</a></h1>
<p>ownCloud uses the <code class="docutils literal"><span class="pre">config/config.php</span></code> file to control server operations.
<code class="docutils literal"><span class="pre">config/config.sample.php</span></code> lists all the configurable parameters within
ownCloud, along with example or default values. This document provides a more
detailed reference. Most options are configurable on your Admin page, so it
is usually not necessary to edit <code class="docutils literal"><span class="pre">config/config.php</span></code>.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The installer creates a configuration containing the essential parameters.
Only manually add configuration parameters to <code class="docutils literal"><span class="pre">config/config.php</span></code> if you need to
use a special value for a parameter. <strong>Do not copy everything from</strong>
<code class="docutils literal"><span class="pre">config/config.sample.php</span></code> <strong>. Only enter the parameters you wish to modify!</strong></p>
</div>
<p>ownCloud supports loading configuration parameters from multiple files.
You can add arbitrary files ending with <code class="file docutils literal"><span class="pre">.config.php</span></code> in the <code class="file docutils literal"><span class="pre">config/</span></code>
directory, for example you could place your email server configuration
in <code class="file docutils literal"><span class="pre">email.config.php</span></code>. This allows you to easily create and manage
custom configurations, or to divide a large complex configuration file
into a set of smaller files. These custom files are not overwritten by
ownCloud, and the values in these files take precedence over <code class="file docutils literal"><span class="pre">config.php</span></code>.</p>
<div class="section" id="default-parameters">
<h2>Default Parameters<a class="headerlink" href="#default-parameters" title="Permalink to this headline">¶</a></h2>
<p>These parameters are configured by the ownCloud installer, and are required
for your ownCloud server to operate.</p>
<div class="highlight-python"><div class="highlight"><pre>'instanceid' => '',
</pre></div>
</div>
<p>This is a unique identifier for your ownCloud installation, created
automatically by the installer. This example is for documentation only,
and you should never use it because it will not work. A valid <code class="docutils literal"><span class="pre">instanceid</span></code>
is created when you install ownCloud.</p>
<p>‘instanceid’ => ‘d3c944a9a’,</p>
<div class="highlight-python"><div class="highlight"><pre>'passwordsalt' => '',
</pre></div>
</div>
<p>The salt used to hash all passwords, auto-generated by the ownCloud
installer. (There are also per-user salts.) If you lose this salt you lose
all your passwords. This example is for documentation only, and you should
never use it.</p>
<div class="highlight-python"><div class="highlight"><pre>'trusted_domains' =>
array (
'demo.example.org',
'otherdomain.example.org',
),
</pre></div>
</div>
<p>Your list of trusted domains that users can log into. Specifying trusted
domains prevents host header poisoning. Do not remove this, as it performs
necessary security checks.</p>
<div class="highlight-python"><div class="highlight"><pre>'datadirectory' => '/var/www/owncloud/data',
</pre></div>
</div>
<p>Where user files are stored; this defaults to <code class="docutils literal"><span class="pre">data/</span></code> in the ownCloud
directory. The SQLite database is also stored here, when you use SQLite.</p>
<p>(SQLite is not available in ownCloud Enterprise Edition)</p>
<div class="highlight-python"><div class="highlight"><pre>'version' => '',
</pre></div>
</div>
<p>The current version number of your ownCloud installation. This is set up
during installation and update, so you shouldn’t need to change it.</p>
<div class="highlight-python"><div class="highlight"><pre>'version.hide' => false,
</pre></div>
</div>
<p>While hardening an ownCloud instance hiding the version information in status.php
can be a legitimate step. Please consult the documentation before enabling this.</p>
<div class="highlight-python"><div class="highlight"><pre>'dbtype' => 'sqlite',
</pre></div>
</div>
<p>Identifies the database used with this installation. See also config option
<code class="docutils literal"><span class="pre">supportedDatabases</span></code></p>
<dl class="docutils">
<dt>Available:</dt>
<dd><ul class="first last simple">
<li>sqlite (SQLite3 - Not in Enterprise Edition)</li>
<li>mysql (MySQL/MariaDB)</li>
<li>pgsql (PostgreSQL)</li>
<li>oci (Oracle - Enterprise Edition Only)</li>
</ul>
</dd>
</dl>
<div class="highlight-python"><div class="highlight"><pre>'dbhost' => '',
</pre></div>
</div>
<p>Your host server name, for example <code class="docutils literal"><span class="pre">localhost</span></code>, <code class="docutils literal"><span class="pre">hostname</span></code>,
<code class="docutils literal"><span class="pre">hostname.example.com</span></code>, or the IP address. To specify a port use
<code class="docutils literal"><span class="pre">hostname:####</span></code>; to specify a Unix socket use
<code class="docutils literal"><span class="pre">localhost:/path/to/socket</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'dbname' => 'owncloud',
</pre></div>
</div>
<p>The name of the ownCloud database, which is set during installation. You
should not need to change this.</p>
<div class="highlight-python"><div class="highlight"><pre>'dbuser' => '',
</pre></div>
</div>
<p>The user that ownCloud uses to write to the database. This must be unique
across ownCloud instances using the same SQL database. This is set up during
installation, so you shouldn’t need to change it.</p>
<div class="highlight-python"><div class="highlight"><pre>'dbpassword' => '',
</pre></div>
</div>
<p>The password for the database user. This is set up during installation, so
you shouldn’t need to change it.</p>
<div class="highlight-python"><div class="highlight"><pre>'dbtableprefix' => '',
</pre></div>
</div>
<p>Prefix for the ownCloud tables in the database.</p>
<div class="highlight-python"><div class="highlight"><pre>'installed' => false,
</pre></div>
</div>
<p>Indicates whether the ownCloud instance was installed successfully; <code class="docutils literal"><span class="pre">true</span></code>
indicates a successful installation, and <code class="docutils literal"><span class="pre">false</span></code> indicates an unsuccessful
installation.</p>
</div>
<div class="section" id="default-config-php-examples">
<h2>Default config.php Examples<a class="headerlink" href="#default-config-php-examples" title="Permalink to this headline">¶</a></h2>
<p>When you use SQLite as your ownCloud database, your <code class="docutils literal"><span class="pre">config.php</span></code> looks like
this after installation. The SQLite database is stored in your ownCloud
<code class="docutils literal"><span class="pre">data/</span></code> directory. SQLite is a simple, lightweight embedded database that
is good for testing and for simple installations, but for production ownCloud
systems you should use MySQL, MariaDB, or PostgreSQL.</p>
<div class="highlight-python"><div class="highlight"><pre><?php
$CONFIG = array (
'instanceid' => 'occ6f7365735',
'passwordsalt' => '2c5778476346786306303',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'studio',
),
'datadirectory' => '/var/www/owncloud/data',
'dbtype' => 'sqlite3',
'version' => '7.0.2.1',
'installed' => true,
);
</pre></div>
</div>
<p>This example is from a new ownCloud installation using MariaDB:</p>
<div class="highlight-python"><div class="highlight"><pre><?php
$CONFIG = array (
'instanceid' => 'oc8c0fd71e03',
'passwordsalt' => '515a13302a6b3950a9d0fdb970191a',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'studio',
2 => '192.168.10.155'
),
'datadirectory' => '/var/www/owncloud/data',
'dbtype' => 'mysql',
'version' => '7.0.2.1',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_carla',
'dbpassword' => '67336bcdf7630dd80b2b81a413d07',
'installed' => true,
);
</pre></div>
</div>
</div>
<div class="section" id="user-experience">
<h2>User Experience<a class="headerlink" href="#user-experience" title="Permalink to this headline">¶</a></h2>
<p>These optional parameters control some aspects of the user interface. Default
values, where present, are shown.</p>
<div class="highlight-python"><div class="highlight"><pre>'default_language' => 'en',
</pre></div>
</div>
<p>This sets the default language on your ownCloud server, using ISO_639-1
language codes such as <code class="docutils literal"><span class="pre">en</span></code> for English, <code class="docutils literal"><span class="pre">de</span></code> for German, and <code class="docutils literal"><span class="pre">fr</span></code> for
French. It overrides automatic language detection on public pages like login
or shared items. User’s language preferences configured under “personal ->
language” override this setting after they have logged in.</p>
<div class="highlight-python"><div class="highlight"><pre>'defaultapp' => 'files',
</pre></div>
</div>
<p>Set the default app to open on login. Use the app names as they appear in the
URL after clicking them in the Apps menu, such as documents, calendar, and
gallery. You can use a comma-separated list of app names, so if the first
app is not enabled for a user then ownCloud will try the second one, and so
on. If no enabled apps are found it defaults to the Files app.</p>
<div class="highlight-python"><div class="highlight"><pre>'knowledgebaseenabled' => true,
</pre></div>
</div>
<p><code class="docutils literal"><span class="pre">true</span></code> enables the Help menu item in the user menu (top right of the
ownCloud Web interface). <code class="docutils literal"><span class="pre">false</span></code> removes the Help item.</p>
<div class="highlight-python"><div class="highlight"><pre>'enable_avatars' => true,
</pre></div>
</div>
<p><code class="docutils literal"><span class="pre">true</span></code> enables avatars, or user profile photos. These appear on the User
page, on user’s Personal pages and are used by some apps (contacts, mail,
etc). <code class="docutils literal"><span class="pre">false</span></code> disables them.</p>
<div class="highlight-python"><div class="highlight"><pre>'allow_user_to_change_display_name' => true,
</pre></div>
</div>
<p><code class="docutils literal"><span class="pre">true</span></code> allows users to change their display names (on their Personal
pages), and <code class="docutils literal"><span class="pre">false</span></code> prevents them from changing their display names.</p>
<div class="highlight-python"><div class="highlight"><pre>'remember_login_cookie_lifetime' => 60*60*24*15,
</pre></div>
</div>
<p>Lifetime of the remember login cookie, which is set when the user clicks the
<code class="docutils literal"><span class="pre">remember</span></code> checkbox on the login screen. The default is 15 days, expressed
in seconds.</p>
<div class="highlight-python"><div class="highlight"><pre>'session_lifetime' => 60 * 60 * 24,
</pre></div>
</div>
<p>The lifetime of a session after inactivity; the default is 24 hours,
expressed in seconds.</p>
<div class="highlight-python"><div class="highlight"><pre>'session_keepalive' => true,
</pre></div>
</div>
<p>Enable or disable session keep-alive when a user is logged in to the Web UI.</p>
<p>Enabling this sends a “heartbeat” to the server to keep it from timing out.</p>
<div class="highlight-python"><div class="highlight"><pre>'token_auth_enforced' => false,
</pre></div>
</div>
<p>Enforce token authentication for clients, which blocks requests using the user
password for enhanced security. Users need to generate tokens in personal settings
which can be used as passwords on their clients.</p>
<div class="highlight-python"><div class="highlight"><pre>'csrf.disabled' => false,
</pre></div>
</div>
<p>Disable ownCloud’s built-in CSRF protection mechanism.</p>
<p>In some specific setups CSRF protection is handled in the environment, e.g.,
running F5 ASM. In these cases the built-in mechanism is not needed and can be disabled.
Generally speaking, however, this config switch should be left unchanged.</p>
<p>WARNING: leave this as is if you’re not sure what it does</p>
<div class="highlight-python"><div class="highlight"><pre>'skeletondirectory' => '/path/to/owncloud/core/skeleton',
</pre></div>
</div>
<p>The directory where the skeleton files are located. These files will be
copied to the data directory of new users. Leave empty to not copy any
skeleton files.</p>
<div class="highlight-python"><div class="highlight"><pre>'user_backends' => array(
array(
'class' => 'OC_User_IMAP',
'arguments' => array('{imap.gmail.com:993/imap/ssl}INBOX')
)
),
</pre></div>
</div>
<p>The <code class="docutils literal"><span class="pre">user_backends</span></code> app (which needs to be enabled first) allows you to
configure alternate authentication backends. Supported backends are:
IMAP (OC_User_IMAP), SMB (OC_User_SMB), and FTP (OC_User_FTP).</p>
<div class="highlight-python"><div class="highlight"><pre>'lost_password_link' => 'https://example.org/link/to/password/reset',
</pre></div>
</div>
<p>If your user backend does not allow to reset the password (e.g. when it’s a
read-only user backend like LDAP), you can specify a custom link, where the
user is redirected to, when clicking the “reset password” link after a failed
login-attempt.</p>
</div>
<div class="section" id="mail-parameters">
<h2>Mail Parameters<a class="headerlink" href="#mail-parameters" title="Permalink to this headline">¶</a></h2>
<p>These configure the email settings for ownCloud notifications and password
resets.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_domain' => 'example.com',
</pre></div>
</div>
<p>The return address that you want to appear on emails sent by the ownCloud
server, for example <code class="docutils literal"><span class="pre">oc-admin@example.com</span></code>, substituting your own domain,
of course.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_from_address' => 'owncloud',
</pre></div>
</div>
<p>FROM address that overrides the built-in <code class="docutils literal"><span class="pre">sharing-noreply</span></code> and
<code class="docutils literal"><span class="pre">lostpassword-noreply</span></code> FROM addresses.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtpdebug' => false,
</pre></div>
</div>
<p>Enable SMTP class debugging.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtpmode' => 'sendmail',
</pre></div>
</div>
<p>Which mode to use for sending mail: <code class="docutils literal"><span class="pre">sendmail</span></code>, <code class="docutils literal"><span class="pre">smtp</span></code>, <code class="docutils literal"><span class="pre">qmail</span></code> or
<code class="docutils literal"><span class="pre">php</span></code>.</p>
<p>If you are using local or remote SMTP, set this to <code class="docutils literal"><span class="pre">smtp</span></code>.</p>
<p>If you are using PHP mail you must have an installed and working email system
on the server. The program used to send email is defined in the <code class="docutils literal"><span class="pre">php.ini</span></code>
file.</p>
<p>For the <code class="docutils literal"><span class="pre">sendmail</span></code> option you need an installed and working email system on
the server, with <code class="docutils literal"><span class="pre">/usr/sbin/sendmail</span></code> installed on your Unix system.</p>
<p>For <code class="docutils literal"><span class="pre">qmail</span></code> the binary is /var/qmail/bin/sendmail, and it must be installed
on your Unix system.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtphost' => '127.0.0.1',
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpmode</span></code>. Specify the IP address of your mail
server host. This may contain multiple hosts separated by a semi-colon. If
you need to specify the port number append it to the IP address separated by
a colon, like this: <code class="docutils literal"><span class="pre">127.0.0.1:24</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtpport' => 25,
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpmode</span></code>. Specify the port for sending mail.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtptimeout' => 10,
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpmode</span></code>. This sets the SMTP server timeout, in
seconds. You may need to increase this if you are running an anti-malware or
spam scanner.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtpsecure' => '',
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpmode</span></code>. Specify when you are using <code class="docutils literal"><span class="pre">ssl</span></code> or
<code class="docutils literal"><span class="pre">tls</span></code>, or leave empty for no encryption.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtpauth' => false,
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpmode</span></code>. Change this to <code class="docutils literal"><span class="pre">true</span></code> if your mail
server requires authentication.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtpauthtype' => 'LOGIN',
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpmode</span></code>. If SMTP authentication is required, choose
the authentication type as <code class="docutils literal"><span class="pre">LOGIN</span></code> (default) or <code class="docutils literal"><span class="pre">PLAIN</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtpname' => '',
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpauth</span></code>. Specify the username for authenticating to
the SMTP server.</p>
<div class="highlight-python"><div class="highlight"><pre>'mail_smtppassword' => '',
</pre></div>
</div>
<p>This depends on <code class="docutils literal"><span class="pre">mail_smtpauth</span></code>. Specify the password for authenticating to
the SMTP server.</p>
</div>
<div class="section" id="proxy-configurations">
<h2>Proxy Configurations<a class="headerlink" href="#proxy-configurations" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>'overwritehost' => '',
</pre></div>
</div>
<p>The automatic hostname detection of ownCloud can fail in certain reverse
proxy and CLI/cron situations. This option allows you to manually override
the automatic detection; for example <code class="docutils literal"><span class="pre">www.example.com</span></code>, or specify the port
<code class="docutils literal"><span class="pre">www.example.com:8080</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'overwriteprotocol' => '',
</pre></div>
</div>
<p>When generating URLs, ownCloud attempts to detect whether the server is
accessed via <code class="docutils literal"><span class="pre">https</span></code> or <code class="docutils literal"><span class="pre">http</span></code>. However, if ownCloud is behind a proxy
and the proxy handles the <code class="docutils literal"><span class="pre">https</span></code> calls, ownCloud would not know that
<code class="docutils literal"><span class="pre">ssl</span></code> is in use, which would result in incorrect URLs being generated.</p>
<p>Valid values are <code class="docutils literal"><span class="pre">http</span></code> and <code class="docutils literal"><span class="pre">https</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'overwritewebroot' => '',
</pre></div>
</div>
<p>ownCloud attempts to detect the webroot for generating URLs automatically.</p>
<p>For example, if <code class="docutils literal"><span class="pre">www.example.com/owncloud</span></code> is the URL pointing to the
ownCloud instance, the webroot is <code class="docutils literal"><span class="pre">/owncloud</span></code>. When proxies are in use, it
may be difficult for ownCloud to detect this parameter, resulting in invalid
URLs.</p>
<div class="highlight-python"><div class="highlight"><pre>'overwritecondaddr' => '',
</pre></div>
</div>
<p>This option allows you to define a manual override condition as a regular
expression for the remote IP address. For example, defining a range of IP
addresses starting with <code class="docutils literal"><span class="pre">10.0.0.</span></code> and ending with 1 to 3:
<code class="docutils literal"><span class="pre">^10\.0\.0\.[1-3]$</span></code></p>
<div class="highlight-python"><div class="highlight"><pre>'overwrite.cli.url' => '',
</pre></div>
</div>
<p>Use this configuration parameter to specify the base URL for any URLs which
are generated within ownCloud using any kind of command line tools (cron or
occ). The value should contain the full base URL:
<code class="docutils literal"><span class="pre">https://www.example.com/owncloud</span></code></p>
<div class="highlight-python"><div class="highlight"><pre>'htaccess.RewriteBase' => '/',
</pre></div>
</div>
<p>To have clean URLs without <cite>/index.php</cite> this parameter needs to be configured.</p>
<p>This parameter will be written as “RewriteBase” on update and installation of
ownCloud to your <cite>.htaccess</cite> file. While this value is often simply the URL
path of the ownCloud installation it cannot be set automatically properly in
every scenario and needs thus some manual configuration.</p>
<p>In a standard Apache setup this usually equals the folder that ownCloud is
accessible at. So if ownCloud is accessible via “<a class="reference external" href="https://mycloud.org/owncloud">https://mycloud.org/owncloud</a>”
the correct value would most likely be “/owncloud”. If ownCloud is running
under “<a class="reference external" href="https://mycloud.org/">https://mycloud.org/</a>” then it would be “/”.</p>
<p>Note that above rule is not valid in every case, there are some rare setup
cases where this may not apply. However, to avoid any update problems this
configuration value is explicitly opt-in.</p>
<p>After setting this value run <cite>occ maintenance:update:htaccess</cite> and when following
conditions are met ownCloud uses URLs without index.php in it:</p>
<ul class="simple">
<li><cite>mod_rewrite</cite> is installed</li>
<li><cite>mod_env</cite> is installed</li>
</ul>
<div class="highlight-python"><div class="highlight"><pre>'proxy' => '',
</pre></div>
</div>
<p>The URL of your proxy server, for example <code class="docutils literal"><span class="pre">proxy.example.com:8081</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'proxyuserpwd' => '',
</pre></div>
</div>
<p>The optional authentication for the proxy to use to connect to the internet.</p>
<p>The format is: <code class="docutils literal"><span class="pre">username:password</span></code>.</p>
</div>
<div class="section" id="deleted-items-trash-bin">
<h2>Deleted Items (trash bin)<a class="headerlink" href="#deleted-items-trash-bin" title="Permalink to this headline">¶</a></h2>
<p>These parameters control the Deleted files app.</p>
<div class="highlight-python"><div class="highlight"><pre>'trashbin_retention_obligation' => 'auto',
</pre></div>
</div>
<p>If the trash bin app is enabled (default), this setting defines the policy
for when files and folders in the trash bin will be permanently deleted.</p>
<p>The app allows for two settings, a minimum time for trash bin retention,
and a maximum time for trash bin retention.
Minimum time is the number of days a file will be kept, after which it
may be deleted. Maximum time is the number of days at which it is guaranteed
to be deleted.
Both minimum and maximum times can be set together to explicitly define
file and folder deletion. For migration purposes, this setting is installed
initially set to “auto”, which is equivalent to the default setting in
ownCloud 8.1 and before.</p>
<p>Available values:</p>
<ul>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">auto</span></code></dt>
<dd><p class="first last">default setting. keeps files and folders in the trash bin for 30 days
and automatically deletes anytime after that if space is needed (note:
files may not be deleted if space is not needed).</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">D,</span> <span class="pre">auto</span></code></dt>
<dd><p class="first last">keeps files and folders in the trash bin for D+ days, delete anytime if
space needed (note: files may not be deleted if space is not needed)</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">auto,</span> <span class="pre">D</span></code></dt>
<dd><p class="first last">delete all files in the trash bin that are older than D days
automatically, delete other files anytime if space needed</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">D1,</span> <span class="pre">D2</span></code></dt>
<dd><p class="first last">keep files and folders in the trash bin for at least D1 days and
delete when exceeds D2 days</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">disabled</span></code></dt>
<dd><p class="first last">trash bin auto clean disabled, files and folders will be kept forever</p>
</dd>
</dl>
</li>
</ul>
</div>
<div class="section" id="file-versions">
<h2>File versions<a class="headerlink" href="#file-versions" title="Permalink to this headline">¶</a></h2>
<p>These parameters control the Versions app.</p>
<div class="highlight-python"><div class="highlight"><pre>'versions_retention_obligation' => 'auto',
</pre></div>
</div>
<p>If the versions app is enabled (default), this setting defines the policy
for when versions will be permanently deleted.</p>
<p>The app allows for two settings, a minimum time for version retention,
and a maximum time for version retention.
Minimum time is the number of days a version will be kept, after which it
may be deleted. Maximum time is the number of days at which it is guaranteed
to be deleted.
Both minimum and maximum times can be set together to explicitly define
version deletion. For migration purposes, this setting is installed
initially set to “auto”, which is equivalent to the default setting in
ownCloud 8.1 and before.</p>
<p>Available values:</p>
<ul>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">auto</span></code></dt>
<dd><p class="first last">default setting. Automatically expire versions according to expire
rules. Please refer to <a class="reference internal" href="../configuration_files/file_versioning.html"><em>Controlling File Versions and Aging</em></a> for
more information.</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">D,</span> <span class="pre">auto</span></code></dt>
<dd><p class="first last">keep versions at least for D days, apply expire rules to all versions
that are older than D days</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">auto,</span> <span class="pre">D</span></code></dt>
<dd><p class="first last">delete all versions that are older than D days automatically, delete
other versions according to expire rules</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">D1,</span> <span class="pre">D2</span></code></dt>
<dd><p class="first last">keep versions for at least D1 days and delete when exceeds D2 days</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">disabled</span></code></dt>
<dd><p class="first last">versions auto clean disabled, versions will be kept forever</p>
</dd>
</dl>
</li>
</ul>
</div>
<div class="section" id="owncloud-verifications">
<h2>ownCloud Verifications<a class="headerlink" href="#owncloud-verifications" title="Permalink to this headline">¶</a></h2>
<p>ownCloud performs several verification checks. There are two options,
<code class="docutils literal"><span class="pre">true</span></code> and <code class="docutils literal"><span class="pre">false</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'appcodechecker' => true,
</pre></div>
</div>
<p>Checks an app before install whether it uses private APIs instead of the
proper public APIs. If this is set to true it will only allow to install or
enable apps that pass this check.</p>
<div class="highlight-python"><div class="highlight"><pre>'updatechecker' => true,
</pre></div>
</div>
<p>Check if ownCloud is up-to-date and shows a notification if a new version is
available.</p>
<div class="highlight-python"><div class="highlight"><pre>'updater.server.url' => 'https://updates.owncloud.com/server/',
</pre></div>
</div>
<p>URL that ownCloud should use to look for updates</p>
<div class="highlight-python"><div class="highlight"><pre>'has_internet_connection' => true,
</pre></div>
</div>
<p>Is ownCloud connected to the Internet or running in a closed network?</p>
<div class="highlight-python"><div class="highlight"><pre>'check_for_working_webdav' => true,
</pre></div>
</div>
<p>Allows ownCloud to verify a working WebDAV connection. This is done by
attempting to make a WebDAV request from PHP.</p>
<div class="highlight-python"><div class="highlight"><pre>'check_for_working_wellknown_setup' => true,
</pre></div>
</div>
<p>Allows ownCloud to verify a working .well-known URL redirects. This is done
by attempting to make a request from JS to
<a class="reference external" href="https://your-domain.com/.well-known/caldav/">https://your-domain.com/.well-known/caldav/</a></p>
<div class="highlight-python"><div class="highlight"><pre>'check_for_working_htaccess' => true,
</pre></div>
</div>
<p>This is a crucial security check on Apache servers that should always be set
to <code class="docutils literal"><span class="pre">true</span></code>. This verifies that the <code class="docutils literal"><span class="pre">.htaccess</span></code> file is writable and works.</p>
<p>If it is not, then any options controlled by <code class="docutils literal"><span class="pre">.htaccess</span></code>, such as large
file uploads, will not work. It also runs checks on the <code class="docutils literal"><span class="pre">data/</span></code> directory,
which verifies that it can’t be accessed directly through the Web server.</p>
<div class="highlight-python"><div class="highlight"><pre>'config_is_read_only' => false,
</pre></div>
</div>
<p>In certain environments it is desired to have a read-only configuration file.</p>
<p>When this switch is set to <code class="docutils literal"><span class="pre">true</span></code> ownCloud will not verify whether the
configuration is writable. However, it will not be possible to configure
all options via the Web interface. Furthermore, when updating ownCloud
it is required to make the configuration file writable again for the update
process.</p>
</div>
<div class="section" id="logging">
<h2>Logging<a class="headerlink" href="#logging" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>'log_type' => 'owncloud',
</pre></div>
</div>
<p>By default the ownCloud logs are sent to the <code class="docutils literal"><span class="pre">owncloud.log</span></code> file in the
default ownCloud data directory.</p>
<p>If syslogging is desired, set this parameter to <code class="docutils literal"><span class="pre">syslog</span></code>.
Setting this parameter to <code class="docutils literal"><span class="pre">errorlog</span></code> will use the PHP error_log function
for logging.</p>
<div class="highlight-python"><div class="highlight"><pre>'logfile' => '/var/log/owncloud.log',
</pre></div>
</div>
<p>Log file path for the ownCloud logging type.</p>
<p>Defaults to <code class="docutils literal"><span class="pre">[datadirectory]/owncloud.log</span></code></p>
<div class="highlight-python"><div class="highlight"><pre>'loglevel' => 2,
</pre></div>
</div>
<p>Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 =
Warning, 3 = Error, and 4 = Fatal. The default value is Warning.</p>
<div class="highlight-python"><div class="highlight"><pre>'syslog_tag' => 'ownCloud',
</pre></div>
</div>
<p>If you maintain different instances and aggregate the logs, you may want
to distinguish between them. <code class="docutils literal"><span class="pre">syslog_tag</span></code> can be set per instance
with a unique id. Only available if <code class="docutils literal"><span class="pre">log_type</span></code> is set to <code class="docutils literal"><span class="pre">syslog</span></code>.</p>
<p>The default value is <code class="docutils literal"><span class="pre">ownCloud</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'log.conditions' => [
[
'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
'users' => ['user1'],
'apps' => ['files_texteditor'],
'logfile' => '/tmp/test.log'
],
[
'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
'users' => ['user1'],
'apps' => ['gallery'],
'logfile' => '/tmp/gallery.log'
],
],
</pre></div>
</div>
<p>Log condition for log level increase based on conditions. Once one of these
conditions is met, the required log level is set to debug. This allows to
debug specific requests, users or apps</p>
<dl class="docutils">
<dt>Supported conditions:</dt>
<dd><ul class="first last">
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">shared_secret</span></code>: if a request parameter with the name <cite>log_secret</cite> is set to</dt>
<dd><p class="first last">this value the condition is met</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">users</span></code>: if the current request is done by one of the specified users,</dt>
<dd><p class="first last">this condition is met</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">apps</span></code>: if the log message is invoked by one of the specified apps,</dt>
<dd><p class="first last">this condition is met</p>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><code class="docutils literal"><span class="pre">logfile</span></code>: the log message invoked by the specified apps get redirected to</dt>
<dd><p class="first last">this logfile, this condition is met
Note: Not applicapable when using syslog.</p>
</dd>
</dl>
</li>
</ul>
</dd>
</dl>
<p>Defaults to an empty array.</p>
<div class="highlight-python"><div class="highlight"><pre>'logdateformat' => 'F d, Y H:i:s',
</pre></div>
</div>
<p>This uses PHP.date formatting; see <a class="reference external" href="http://php.net/manual/en/function.date.php">http://php.net/manual/en/function.date.php</a></p>
<div class="highlight-python"><div class="highlight"><pre>'logtimezone' => 'Europe/Berlin',
</pre></div>
</div>
<p>The default timezone for logfiles is UTC. You may change this; see
<a class="reference external" href="http://php.net/manual/en/timezones.php">http://php.net/manual/en/timezones.php</a></p>
<div class="highlight-python"><div class="highlight"><pre>'log_query' => false,
</pre></div>
</div>
<p>Append all database queries and parameters to the log file. Use this only for
debugging, as your logfile will become huge.</p>
<div class="highlight-python"><div class="highlight"><pre>'cron_log' => true,
</pre></div>
</div>
<p>Log successful cron runs.</p>
<div class="highlight-python"><div class="highlight"><pre>'log_rotate_size' => false,
</pre></div>
</div>
<p>Enables log rotation and limits the total size of logfiles. The default is 0,
or no rotation. Specify a size in bytes, for example 104857600 (100 megabytes
= 100 * 1024 * 1024 bytes). A new logfile is created with a new name when the
old logfile reaches your limit. If a rotated log file is already present, it
will be overwritten.</p>
</div>
<div class="section" id="alternate-code-locations">
<h2>Alternate Code Locations<a class="headerlink" href="#alternate-code-locations" title="Permalink to this headline">¶</a></h2>
<p>Some of the ownCloud code may be stored in alternate locations.</p>
<div class="highlight-python"><div class="highlight"><pre>'customclient_desktop' =>
'https://owncloud.org/install/#install-clients',
'customclient_android' =>
'https://play.google.com/store/apps/details?id=com.owncloud.android',
'customclient_ios' =>
'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8',
</pre></div>
</div>
<p>This section is for configuring the download links for ownCloud clients, as
seen in the first-run wizard and on Personal pages.</p>
</div>
<div class="section" id="apps">
<h2>Apps<a class="headerlink" href="#apps" title="Permalink to this headline">¶</a></h2>
<p>Options for the Apps folder, Apps store, and App code checker.</p>
<div class="highlight-python"><div class="highlight"><pre>'appstoreenabled' => true,
</pre></div>
</div>
<p>When enabled, admins may install apps from the ownCloud app store.</p>
<div class="highlight-python"><div class="highlight"><pre>'appstoreurl' => 'https://api.owncloud.com/v1',
</pre></div>
</div>
<p>The URL of the appstore to use.</p>
<div class="highlight-python"><div class="highlight"><pre>'appstore.experimental.enabled' => false,
</pre></div>
</div>
<p>Whether to show experimental apps in the appstore interface</p>
<p>Experimental apps are not checked for security issues and are new or known
to be unstable and under heavy development. Installing these can cause data
loss or security breaches.</p>
<p>Use the <code class="docutils literal"><span class="pre">apps_paths</span></code> parameter to set the location of the Apps directory,
which should be scanned for available apps, and where user-specific apps
should be installed from the Apps store. The <code class="docutils literal"><span class="pre">path</span></code> defines the absolute
file system path to the app folder. The key <code class="docutils literal"><span class="pre">url</span></code> defines the HTTP Web path
to that folder, starting from the ownCloud webroot. The key <code class="docutils literal"><span class="pre">writable</span></code>
indicates if a Web server can write files to that folder.
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————</p>
<div class="highlight-python"><div class="highlight"><pre>'appcodechecker' => true,
</pre></div>
</div>
<p>Checks an app before install whether it uses private APIs instead of the
proper public APIs. If this is set to true it will only allow to install or
enable apps that pass this check.</p>
</div>
<div class="section" id="previews">
<h2>Previews<a class="headerlink" href="#previews" title="Permalink to this headline">¶</a></h2>
<p>ownCloud supports previews of image files, the covers of MP3 files, and text
files. These options control enabling and disabling previews, and thumbnail
size.</p>
<div class="highlight-python"><div class="highlight"><pre>'enable_previews' => true,
</pre></div>
</div>
<p>By default, ownCloud can generate previews for the following filetypes:</p>
<ul class="simple">
<li>Image files</li>
<li>Covers of MP3 files</li>
<li>Text documents</li>
</ul>
<p>Valid values are <code class="docutils literal"><span class="pre">true</span></code>, to enable previews, or
<code class="docutils literal"><span class="pre">false</span></code>, to disable previews</p>
<div class="highlight-python"><div class="highlight"><pre>'preview_max_x' => 2048,
</pre></div>
</div>
<p>The maximum width, in pixels, of a preview. A value of <code class="docutils literal"><span class="pre">null</span></code> means there
is no limit.</p>
<div class="highlight-python"><div class="highlight"><pre>'preview_max_y' => 2048,
</pre></div>
</div>
<p>The maximum height, in pixels, of a preview. A value of <code class="docutils literal"><span class="pre">null</span></code> means there
is no limit.</p>
<div class="highlight-python"><div class="highlight"><pre>'preview_max_scale_factor' => 10,
</pre></div>
</div>
<p>If a lot of small pictures are stored on the ownCloud instance and the
preview system generates blurry previews, you might want to consider setting
a maximum scale factor. By default, pictures are upscaled to 10 times the
original size. A value of <code class="docutils literal"><span class="pre">1</span></code> or <code class="docutils literal"><span class="pre">null</span></code> disables scaling.</p>
<div class="highlight-python"><div class="highlight"><pre>'preview_max_filesize_image' => 50,
</pre></div>
</div>
<p>max file size for generating image previews with imagegd (default behaviour)
If the image is bigger, it’ll try other preview generators,
but will most likely show the default mimetype icon</p>
<p>Value represents the maximum filesize in megabytes
Default is 50
Set to -1 for no limit</p>
<div class="highlight-python"><div class="highlight"><pre>'preview_libreoffice_path' => '/usr/bin/libreoffice',
</pre></div>
</div>
<p>custom path for LibreOffice/OpenOffice binary</p>
<div class="highlight-python"><div class="highlight"><pre>'preview_office_cl_parameters' =>
' --headless --nologo --nofirststartwizard --invisible --norestore '.
'--convert-to pdf --outdir ',
</pre></div>
</div>
<p>Use this if LibreOffice/OpenOffice requires additional arguments.</p>
<div class="highlight-python"><div class="highlight"><pre>'enabledPreviewProviders' => array(
'OC\Preview\PNG',
'OC\Preview\JPEG',
'OC\Preview\GIF',
'OC\Preview\BMP',
'OC\Preview\XBitmap',
'OC\Preview\MP3',
'OC\Preview\TXT',
'OC\Preview\MarkDown'
),
</pre></div>
</div>
<p>Only register providers that have been explicitly enabled</p>
<p>The following providers are enabled by default:</p>
<blockquote>
<div><ul class="simple">
<li>OC\Preview\PNG</li>
<li>OC\Preview\JPEG</li>
<li>OC\Preview\GIF</li>
<li>OC\Preview\BMP</li>
<li>OC\Preview\XBitmap</li>
<li>OC\Preview\MarkDown</li>
<li>OC\Preview\MP3</li>
<li>OC\Preview\TXT</li>
</ul>
</div></blockquote>
<p>The following providers are disabled by default due to performance or privacy
concerns:</p>
<blockquote>
<div><ul class="simple">
<li>OC\Preview\Illustrator</li>
<li>OC\Preview\Movie</li>
<li>OC\Preview\MSOffice2003</li>
<li>OC\Preview\MSOffice2007</li>
<li>OC\Preview\MSOfficeDoc</li>
<li>OC\Preview\OpenDocument</li>
<li>OC\Preview\PDF</li>
<li>OC\Preview\Photoshop</li>
<li>OC\Preview\Postscript</li>
<li>OC\Preview\StarOffice</li>
<li>OC\Preview\SVG</li>
<li>OC\Preview\TIFF</li>
<li>OC\Preview\Font</li>
</ul>
</div></blockquote>
<p>The following providers are not available in Microsoft Windows:</p>
<blockquote>
<div><ul class="simple">
<li>OC\Preview\Movie</li>
<li>OC\Preview\MSOfficeDoc</li>
<li>OC\Preview\MSOffice2003</li>
<li>OC\Preview\MSOffice2007</li>
<li>OC\Preview\OpenDocument</li>
<li>OC\Preview\StarOffice</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="ldap">
<h2>LDAP<a class="headerlink" href="#ldap" title="Permalink to this headline">¶</a></h2>
<p>Global settings used by LDAP User and Group Backend</p>
<div class="highlight-python"><div class="highlight"><pre>'ldapUserCleanupInterval' => 51,
</pre></div>
</div>
<p>defines the interval in minutes for the background job that checks user
existence and marks them as ready to be cleaned up. The number is always
minutes. Setting it to 0 disables the feature.</p>
<p>See command line (occ) methods <a class="reference external" href="ldap:show-remnants">ldap:show-remnants</a> and user:delete</p>
</div>
<div class="section" id="comments">
<h2>Comments<a class="headerlink" href="#comments" title="Permalink to this headline">¶</a></h2>
<p>Global settings for the Comments infrastructure</p>
<div class="highlight-python"><div class="highlight"><pre>'comments.managerFactory' => '\OC\Comments\ManagerFactory',
</pre></div>
</div>
<p>Replaces the default Comments Manager Factory. This can be utilized if an
own or 3rdParty CommentsManager should be used that – for instance – uses the
filesystem instead of the database to keep the comments.</p>
<div class="highlight-python"><div class="highlight"><pre>'systemtags.managerFactory' => '\OC\SystemTag\ManagerFactory',
</pre></div>
</div>
<p>Replaces the default System Tags Manager Factory. This can be utilized if an
own or 3rdParty SystemTagsManager should be used that – for instance – uses the
filesystem instead of the database to keep the comments.</p>
</div>
<div class="section" id="maintenance">
<h2>Maintenance<a class="headerlink" href="#maintenance" title="Permalink to this headline">¶</a></h2>
<p>These options are for halting user activity when you are performing server
maintenance.</p>
<div class="highlight-python"><div class="highlight"><pre>'maintenance' => false,
</pre></div>
</div>
<p>Enable maintenance mode to disable ownCloud</p>
<p>If you want to prevent users from logging in to ownCloud before you start
doing some maintenance work, you need to set the value of the maintenance
parameter to true. Please keep in mind that users who are already logged-in
are kicked out of ownCloud instantly.</p>
<div class="highlight-python"><div class="highlight"><pre>'singleuser' => false,
</pre></div>
</div>
<p>When set to <code class="docutils literal"><span class="pre">true</span></code>, the ownCloud instance will be unavailable for all users
who are not in the <code class="docutils literal"><span class="pre">admin</span></code> group.</p>
</div>
<div class="section" id="ssl">
<h2>SSL<a class="headerlink" href="#ssl" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>'openssl' => array(
'config' => '/absolute/location/of/openssl.cnf',
),
</pre></div>
</div>
<p>Extra SSL options to be used for configuration.</p>
<div class="highlight-python"><div class="highlight"><pre>'enable_certificate_management' => false,
</pre></div>
</div>
<p>Allow the configuration of system wide trusted certificates</p>
</div>
<div class="section" id="memory-caching-backend-configuration">
<h2>Memory caching backend configuration<a class="headerlink" href="#memory-caching-backend-configuration" title="Permalink to this headline">¶</a></h2>
<p>Available cache backends:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">\OC\Memcache\APC</span></code> Alternative PHP Cache backend</li>
<li><code class="docutils literal"><span class="pre">\OC\Memcache\APCu</span></code> APC user backend</li>
<li><code class="docutils literal"><span class="pre">\OC\Memcache\ArrayCache</span></code> In-memory array-based backend (not recommended)</li>
<li><code class="docutils literal"><span class="pre">\OC\Memcache\Memcached</span></code> Memcached backend</li>
<li><code class="docutils literal"><span class="pre">\OC\Memcache\Redis</span></code> Redis backend</li>
<li><code class="docutils literal"><span class="pre">\OC\Memcache\XCache</span></code> XCache backend</li>
</ul>
<p>Advice on choosing between the various backends:</p>
<ul class="simple">
<li>APCu should be easiest to install. Almost all distributions have packages.
Use this for single user environment for all caches.</li>
<li>Use Redis or Memcached for distributed environments.
For the local cache (you can configure two) take APCu.</li>
</ul>
<div class="highlight-python"><div class="highlight"><pre>'memcache.local' => '\OC\Memcache\APCu',
</pre></div>
</div>
<p>Memory caching backend for locally stored data</p>
<ul class="simple">
<li>Used for host-specific data, e.g. file paths</li>
</ul>
<div class="highlight-python"><div class="highlight"><pre>'memcache.distributed' => '\OC\Memcache\Memcached',
</pre></div>
</div>
<p>Memory caching backend for distributed data</p>
<ul class="simple">
<li>Used for installation-specific data, e.g. database caching</li>
<li>If unset, defaults to the value of memcache.local</li>
</ul>
<div class="highlight-python"><div class="highlight"><pre>'redis' => [
'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
'port' => 6379,
'timeout' => 0.0,
'password' => '', // Optional, if not defined no password will be used.
'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
],
</pre></div>
</div>
<p>Connection details for redis to use for memory caching in a single server configuration.</p>
<p>For enhanced security it is recommended to configure Redis
to require a password. See <a class="reference external" href="http://redis.io/topics/security">http://redis.io/topics/security</a>
for more information.</p>
<div class="highlight-python"><div class="highlight"><pre>'redis.cluster' => [
'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
'localhost:7000',
'localhost:7001'
],
'timeout' => 0.0,
'read_timeout' => 0.0,
'failover_mode' => \RedisCluster::FAILOVER_DISTRIBUTE
],
</pre></div>
</div>
<p>Connection details for a Redis Cluster</p>
<p>Only for use with Redis Clustering, for Sentinel-based setups use the single
server configuration above, and perform HA on the hostname.</p>
<p>Redis Cluster support requires the php module phpredis in version 3.0.0 or higher.</p>
<dl class="docutils">
<dt>Available failover modes:</dt>
<dd><ul class="first last simple">
<li>\RedisCluster::FAILOVER_NONE - only send commands to master nodes (default)</li>
<li>\RedisCluster::FAILOVER_ERROR - failover to slaves for read commands if master is unavailable</li>
<li>\RedisCluster::FAILOVER_DISTRIBUTE - randomly distribute read commands across master and slaves</li>
</ul>
</dd>
</dl>
<div class="highlight-python"><div class="highlight"><pre>'memcached_servers' => array(
// hostname, port and optional weight. Also see:
// http://www.php.net/manual/en/memcached.addservers.php
// http://www.php.net/manual/en/memcached.addserver.php
array('localhost', 11211),
//array('other.host.local', 11211),
),
</pre></div>
</div>
<p>Server details for one or more memcached servers to use for memory caching.</p>
<div class="highlight-python"><div class="highlight"><pre>'memcached_options' => array(
// Set timeouts to 50ms
\Memcached::OPT_CONNECT_TIMEOUT => 50,
\Memcached::OPT_RETRY_TIMEOUT => 50,
\Memcached::OPT_SEND_TIMEOUT => 50,
\Memcached::OPT_RECV_TIMEOUT => 50,
\Memcached::OPT_POLL_TIMEOUT => 50,
// Enable compression
\Memcached::OPT_COMPRESSION => true,
// Turn on consistent hashing
\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
// Enable Binary Protocol
\Memcached::OPT_BINARY_PROTOCOL => true,
// Binary serializer vill be enabled if the igbinary PECL module is available
//\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
),
</pre></div>
</div>
<p>Connection options for memcached, see <a class="reference external" href="http://apprize.info/php/scaling/15.html">http://apprize.info/php/scaling/15.html</a></p>
<div class="highlight-python"><div class="highlight"><pre>'cache_path' => '',
</pre></div>
</div>
<p>Location of the cache folder, defaults to <code class="docutils literal"><span class="pre">data/$user/cache</span></code> where
<code class="docutils literal"><span class="pre">$user</span></code> is the current user. When specified, the format will change to
<code class="docutils literal"><span class="pre">$cache_path/$user</span></code> where <code class="docutils literal"><span class="pre">$cache_path</span></code> is the configured cache directory
and <code class="docutils literal"><span class="pre">$user</span></code> is the user.</p>
<div class="highlight-python"><div class="highlight"><pre>'cache_chunk_gc_ttl' => 86400, // 60*60*24 = 1 day
</pre></div>
</div>
<p>TTL of chunks located in the cache folder before they’re removed by
garbage collection (in seconds). Increase this value if users have
issues uploading very large files via the ownCloud Client as upload isn’t
completed within one day.</p>
</div>
<div class="section" id="using-object-store-with-owncloud">
<h2>Using Object Store with ownCloud<a class="headerlink" href="#using-object-store-with-owncloud" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>'objectstore' => [
'class' => 'OC\\Files\\ObjectStore\\Swift',
'arguments' => [
// trystack will user your facebook id as the user name
'username' => 'facebook100000123456789',
// in the trystack dashboard go to user -> settings -> API Password to
// generate a password
'password' => 'Secr3tPaSSWoRdt7',
// must already exist in the objectstore, name can be different
'container' => 'owncloud',
// prefix to prepend to the fileid, default is 'oid:urn:'
'objectPrefix' => 'oid:urn:',
// create the container if it does not exist. default is false
'autocreate' => true,
// required, dev-/trystack defaults to 'RegionOne'
'region' => 'RegionOne',
// The Identity / Keystone endpoint
'url' => 'http://8.21.28.222:5000/v2.0',
// required on dev-/trystack
'tenantName' => 'facebook100000123456789',
// dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
// if omitted
'serviceName' => 'swift',
// The Interface / url Type, optional
'urlType' => 'internal'
],
],
</pre></div>
</div>
<p>This example shows how to configure ownCloud to store all files in a
swift object storage.</p>
<p>It is important to note that ownCloud in object store mode will expect
exclusive access to the object store container because it only stores the
binary data for each file. The metadata is currently kept in the local
database for performance reasons.</p>
<p>WARNING: The current implementation is incompatible with any app that uses
direct file IO and circumvents our virtual filesystem. That includes
Encryption and Gallery. Gallery will store thumbnails directly in the
filesystem and encryption will cause severe overhead because key files need
to be fetched in addition to any requested file.</p>
<p>One way to test is applying for a trystack account at <a class="reference external" href="http://trystack.org/">http://trystack.org/</a></p>
</div>
<div class="section" id="sharing">
<h2>Sharing<a class="headerlink" href="#sharing" title="Permalink to this headline">¶</a></h2>
<p>Global settings for Sharing</p>
<div class="highlight-python"><div class="highlight"><pre>'sharing.managerFactory' => '\OC\Share20\ProviderFactory',
</pre></div>
</div>
<p>Replaces the default Share Provider Factory. This can be utilized if
own or 3rdParty Share Providers be used that – for instance – uses the
filesystem instead of the database to keep the share information.</p>
</div>
<div class="section" id="all-other-configuration-options">
<h2>All other configuration options<a class="headerlink" href="#all-other-configuration-options" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre>'dbdriveroptions' => array(
PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
),
</pre></div>
</div>
<p>Additional driver options for the database connection, eg. to enable SSL
encryption in MySQL or specify a custom wait timeout on a cheap hoster.</p>
<div class="highlight-python"><div class="highlight"><pre>'sqlite.journal_mode' => 'DELETE',
</pre></div>
</div>
<p>sqlite3 journal mode can be specified using this configuration parameter -
can be ‘WAL’ or ‘DELETE’ see for more details <a class="reference external" href="https://www.sqlite.org/wal.html">https://www.sqlite.org/wal.html</a></p>
<div class="highlight-python"><div class="highlight"><pre>'mysql.utf8mb4' => false,
</pre></div>
</div>
<p>During setup, if requirements are met (see below), this setting is set to true
and MySQL can handle 4 byte characters instead of 3 byte characters.</p>
<p>If you want to convert an existing 3-byte setup into a 4-byte setup please
set the parameters in MySQL as mentioned below run the migration command:</p>
<blockquote>
<div>./occ db:convert-mysql-charset</div></blockquote>
<p>The config setting will be set automatically after a successful run.</p>
<p>Consult the documentation for more details.</p>
<p>MySQL requires a special setup for longer indexes (> 767 bytes) which are
needed:</p>
<p>[mysqld]
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_file_per_table=ON</p>
<dl class="docutils">
<dt>Tables will be created with</dt>
<dd><ul class="first last simple">
<li>character set: utf8mb4</li>
<li>collation: utf8mb4_bin</li>
<li>row_format: compressed</li>
</ul>
</dd>
</dl>
<p>See:
<a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html">https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html</a>
<a class="reference external" href="https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_large_prefix">https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_large_prefix</a>
<a class="reference external" href="https://mariadb.com/kb/en/mariadb/xtradbinnodb-server-system-variables/#innodb_large_prefix">https://mariadb.com/kb/en/mariadb/xtradbinnodb-server-system-variables/#innodb_large_prefix</a>
<a class="reference external" href="http://www.tocker.ca/2013/10/31/benchmarking-innodb-page-compression-performance.html">http://www.tocker.ca/2013/10/31/benchmarking-innodb-page-compression-performance.html</a>
<a class="reference external" href="http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/">http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/</a></p>
<div class="highlight-python"><div class="highlight"><pre>'supportedDatabases' => array(
'sqlite',
'mysql',
'pgsql',
'oci',
),
</pre></div>
</div>
<p>Database types that are supported for installation.</p>
<dl class="docutils">
<dt>Available:</dt>
<dd><ul class="first last simple">
<li>sqlite (SQLite3 - Not in Enterprise Edition)</li>
<li>mysql (MySQL)</li>
<li>pgsql (PostgreSQL)</li>
<li>oci (Oracle - Enterprise Edition Only)</li>
</ul>
</dd>
</dl>
<div class="highlight-python"><div class="highlight"><pre>'tempdirectory' => '/tmp/owncloudtemp',
</pre></div>
</div>
<p>Override where ownCloud stores temporary files. Useful in situations where
the system temporary directory is on a limited space ramdisk or is otherwise
restricted, or if external storages which do not support streaming are in
use.</p>
<p>The Web server user must have write access to this directory.</p>
<div class="highlight-python"><div class="highlight"><pre>'hashingCost' => 10,
</pre></div>
</div>
<p>The hashing cost used by hashes generated by ownCloud
Using a higher value requires more time and CPU power to calculate the hashes</p>
<div class="highlight-python"><div class="highlight"><pre>'blacklisted_files' => array('.htaccess'),
</pre></div>
</div>
<p>Blacklist a specific file or files and disallow the upload of files
with this name. <code class="docutils literal"><span class="pre">.htaccess</span></code> is blocked by default.</p>
<p>WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.</p>
<div class="highlight-python"><div class="highlight"><pre>'excluded_directories' =>
array (
'.snapshot',
'~snapshot',
),
</pre></div>
</div>
<p>Exclude specific directory names and disallow scanning, creating and renaming
using these names. Case insensitive.</p>
<p>Excluded directory names are queried at any path part like at the beginning,
in the middle or at the end and will not be further processed if found.
Please see the documentation for details and examples.
Use when the storage backend supports eg snapshot directories to be excluded.
WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING.</p>
<div class="highlight-python"><div class="highlight"><pre>'share_folder' => '/',
</pre></div>
</div>
<p>Define a default folder for shared files and folders other than root.</p>
<div class="highlight-python"><div class="highlight"><pre>'theme' => '',
</pre></div>
</div>
<p>If you are applying a theme to ownCloud, enter the name of the theme here.</p>
<p>The default location for themes is <code class="docutils literal"><span class="pre">owncloud/themes/</span></code>.</p>
<div class="highlight-python"><div class="highlight"><pre>'cipher' => 'AES-256-CFB',
</pre></div>
</div>
<p>The default cipher for encrypting files. Currently AES-128-CFB and
AES-256-CFB are supported.</p>
<div class="highlight-python"><div class="highlight"><pre>'minimum.supported.desktop.version' => '2.0.0',
</pre></div>
</div>
<p>The minimum ownCloud desktop client version that will be allowed to sync with
this server instance. All connections made from earlier clients will be denied
by the server. Defaults to the minimum officially supported ownCloud version at
the time of release of this server version.</p>
<p>When changing this, note that older unsupported versions of the ownCloud desktop
client may not function as expected, and could lead to permanent data loss for
clients or other unexpected results.</p>
<div class="highlight-python"><div class="highlight"><pre>'quota_include_external_storage' => false,
</pre></div>
</div>
<p>EXPERIMENTAL: option whether to include external storage in quota
calculation, defaults to false.</p>
<div class="highlight-python"><div class="highlight"><pre>'filesystem_check_changes' => 0,
</pre></div>
</div>
<p>Specifies how often the local filesystem (the ownCloud data/ directory, and
NFS mounts in data/) is checked for changes made outside ownCloud. This
does not apply to external storages.</p>
<p>0 -> Never check the filesystem for outside changes, provides a performance
increase when it’s certain that no changes are made directly to the
filesystem</p>
<p>1 -> Check each file or folder at most once per request, recommended for
general use if outside changes might happen.</p>
<div class="highlight-python"><div class="highlight"><pre>'part_file_in_storage' => true,
</pre></div>
</div>
<p>By default ownCloud will store the part files created during upload in the
same storage as the upload target. Setting this to false will store the part
files in the root of the users folder which might be required to work with certain
external storage setups that have limited rename capabilities.</p>
<div class="highlight-python"><div class="highlight"><pre>'mount_file' => '/var/www/owncloud/data/mount.json',
</pre></div>
</div>
<p>Where <code class="docutils literal"><span class="pre">mount.json</span></code> file should be stored, defaults to <code class="docutils literal"><span class="pre">data/mount.json</span></code>
in the ownCloud directory.</p>
<div class="highlight-python"><div class="highlight"><pre>'filesystem_cache_readonly' => false,
</pre></div>
</div>
<p>When <code class="docutils literal"><span class="pre">true</span></code>, prevent ownCloud from changing the cache due to changes in the
filesystem for all storage.</p>
<div class="highlight-python"><div class="highlight"><pre>'secret' => '',
</pre></div>
</div>
<p>Secret used by ownCloud for various purposes, e.g. to encrypt data. If you
lose this string there will be data corruption.</p>
<div class="highlight-python"><div class="highlight"><pre>'trusted_proxies' => array('203.0.113.45', '198.51.100.128'),
</pre></div>
</div>
<p>List of trusted proxy servers</p>
<p>If you configure these also consider setting <cite>forwarded_for_headers</cite> which
otherwise defaults to <cite>HTTP_X_FORWARDED_FOR</cite> (the <cite>X-Forwarded-For</cite> header).</p>
<div class="highlight-python"><div class="highlight"><pre>'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
</pre></div>
</div>
<p>Headers that should be trusted as client IP address in combination with
<cite>trusted_proxies</cite>. If the HTTP header looks like ‘X-Forwarded-For’, then use
‘HTTP_X_FORWARDED_FOR’ here.</p>
<p>If set incorrectly, a client can spoof their IP address as visible to
ownCloud, bypassing access controls and making logs useless!</p>
<p>Defaults to ‘HTTP_X_FORWARED_FOR’ if unset</p>
<div class="highlight-python"><div class="highlight"><pre>'max_filesize_animated_gifs_public_sharing' => 10,
</pre></div>
</div>
<p>max file size for animating gifs on public-sharing-site.</p>
<p>If the gif is bigger, it’ll show a static preview</p>
<p>Value represents the maximum filesize in megabytes. Default is <code class="docutils literal"><span class="pre">10</span></code>. Set to
<code class="docutils literal"><span class="pre">-1</span></code> for no limit.</p>
<div class="highlight-python"><div class="highlight"><pre>'filelocking.enabled' => true,
</pre></div>
</div>
<p>Enables transactional file locking.</p>
<p>This is enabled by default.</p>
<p>Prevents concurrent processes from accessing the same files
at the same time. Can help prevent side effects that would
be caused by concurrent operations. Mainly relevant for
very large installations with many users working with
shared files.</p>
<div class="highlight-python"><div class="highlight"><pre>'filelocking.ttl' => 3600,
</pre></div>
</div>
<p>Set the time-to-live for locks in secconds.</p>
<p>Any lock older than this will be automatically cleaned up.</p>
<p>If not set this defaults to either 1 hour or the php max_execution_time, whichever is higher.</p>
<div class="highlight-python"><div class="highlight"><pre>'memcache.locking' => '\\OC\\Memcache\\Redis',
</pre></div>
</div>
<p>Memory caching backend for file locking</p>
<p>Because most memcache backends can clean values without warning using redis
is highly recommended to <em>avoid data loss</em>.</p>
<div class="highlight-python"><div class="highlight"><pre>'upgrade.disable-web' => false,
</pre></div>
</div>
<p>Disable the web based updater</p>
<div class="highlight-python"><div class="highlight"><pre>'debug' => false,
</pre></div>
</div>
<p>Set this ownCloud instance to debugging mode</p>
<p>Only enable this for local development and not in production environments
This will disable the minifier and outputs some additional debug information</p>
<div class="highlight-python"><div class="highlight"><pre>'data-fingerprint' => '',
</pre></div>
</div>
<p>Sets the data-fingerprint of the current data served</p>
<p>This is a property used by the clients to find out if a backup has been
restored on the server. Once a backup is restored run
./occ maintenance:data-fingerprint
To set this to a new value.</p>
<p>Updating/Deleting this value can make connected clients stall until
the user has resolved conflicts.</p>
<div class="highlight-python"><div class="highlight"><pre>'copied_sample_config' => true,
</pre></div>
</div>
<p>This entry is just here to show a warning in case somebody copied the sample
configuration. DO NOT ADD THIS SWITCH TO YOUR CONFIGURATION!</p>
<p>If you, brave person, have read until here be aware that you should not
modify <em>ANY</em> settings in this file without reading the documentation.</p>
<div class="highlight-python"><div class="highlight"><pre>'files_external_allow_create_new_local' => false,
</pre></div>
</div>
<p>Set this property to true if you want to enable the files_external local mount Option.</p>
<p>Default: false</p>
</div>
<div class="section" id="app-config-options">
<h2>App config options<a class="headerlink" href="#app-config-options" title="Permalink to this headline">¶</a></h2>
<p>Retention for activities of the activity app:</p>
<div class="highlight-python"><div class="highlight"><pre>'activity_expire_days' => 365,
</pre></div>
</div>
<p>Every day a cron job is ran, which deletes all activities for all users
which are older then the number of days that is set for <code class="docutils literal"><span class="pre">activity_expire_days</span></code></p>
<div class="highlight-python"><div class="highlight"><pre>'wnd.logging.enable' => true,
</pre></div>
</div>
<p>This enables debug logs for the windows_network_drive app.</p>
</div>
<div class="section" id="overriding-existing-parameter-values-using-environment-variables">
<h2>Overriding Existing Parameter Values Using Environment Variables<a class="headerlink" href="#overriding-existing-parameter-values-using-environment-variables" title="Permalink to this headline">¶</a></h2>
<p>ownCloud supports the ability to override the <em>web UI</em>, <em>command line</em>, and <em>Cron</em> environments’ settings by using <a href="#id1"><span class="problematic" id="id2">`environment variables`_</span></a>.
By doing so, you avoid the need to store credentials and other sensitive data in code.
What’s more, by using environment variables, you do not have to manage configurations (e.g., database connections) for different server environments, because environment variables store this information for you.</p>
<p>To override an existing setting, you need to export an environment variable which has the same name as the one which you want to override, prefixed with <code class="docutils literal"><span class="pre">OC_</span></code>.
For example, if you wanted to override the value of <code class="docutils literal"><span class="pre">dbname</span></code>, you would set the environment variable <code class="docutils literal"><span class="pre">OC_dbname</span></code>.</p>
<p>Below are examples of setting an environment variable in the Apache and Nginx
web servers, and for when running command line scripts.</p>
<div class="section" id="apache-web-server">
<h3>Apache Web Server<a class="headerlink" href="#apache-web-server" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><div class="highlight"><pre># Inside a virtual host configuration
SetEnv OC_dbname owncloud_database_name
</pre></div>
</div>
</div>
<div class="section" id="nginx-web-server-php-fpm">
<h3>Nginx Web Server (php-fpm)<a class="headerlink" href="#nginx-web-server-php-fpm" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><div class="highlight"><pre>location / {
fastcgi_param OC_dbname owncloud_database_name
}
</pre></div>
</div>
</div>
<div class="section" id="command-line">
<h3>Command Line<a class="headerlink" href="#command-line" title="Permalink to this headline">¶</a></h3>
<div class="highlight-python"><div class="highlight"><pre># export the variable into the environment before launching the Cron script
export OC_dbname=owncloud_database_name php -d variables_order=EGPCS cron.php
</pre></div>
</div>
</div>
</div>
</div>
<ul class="prevnext-title list-unstyled list-inline">
<li class="prev">
<a href="background_jobs_configuration.html" title="Previous Chapter: Background Jobs"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Background Jobs</span>
</a>
</li>
<li class="next">
<a href="email_configuration.html" title="Next Chapter: Email Configuration"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Email Configu... »</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</main>
</div>
</div>
</body>
</html>