config.sample.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?php
  2. /* Only enable this for local development and not in productive environments */
  3. /* This will disable the minifier and outputs some additional debug informations */
  4. define("DEBUG", true);
  5. $CONFIG = array(
  6. /* Flag to indicate ownCloud is successfully installed (true = installed) */
  7. "installed" => false,
  8. /* Type of database, can be sqlite, mysql or pgsql */
  9. "dbtype" => "sqlite",
  10. /* Name of the ownCloud database */
  11. "dbname" => "owncloud",
  12. /* User to access the ownCloud database */
  13. "dbuser" => "",
  14. /* Password to access the ownCloud database */
  15. "dbpassword" => "",
  16. /* Host running the ownCloud database */
  17. "dbhost" => "",
  18. /* Prefix for the ownCloud tables in the database */
  19. "dbtableprefix" => "",
  20. /* Define the salt used to hash the user passwords. All your user passwords are lost if you lose this string. */
  21. "passwordsalt" => "",
  22. /* Force use of HTTPS connection (true = use HTTPS) */
  23. "forcessl" => false,
  24. /* Blacklist a specific file and disallow the upload of files with this name - WARNING: USE THIS ONLY IF YOU KNOW WHAT YOU ARE DOING. */
  25. "blacklisted_files" => array('.htaccess'),
  26. /* The automatic hostname detection of ownCloud can fail in certain reverse proxy situations. This option allows to manually override the automatic detection. You can also add a port. For example "www.example.com:88" */
  27. "overwritehost" => "",
  28. /* The automatic protocol detection of ownCloud can fail in certain reverse proxy situations. This option allows to manually override the protocol detection. For example "https" */
  29. "overwriteprotocol" => "",
  30. /* The automatic webroot detection of ownCloud can fail in certain reverse proxy situations. This option allows to manually override the automatic detection. For example "/domain.tld/ownCloud" */
  31. "overwritewebroot" => "",
  32. /* The automatic detection of ownCloud can fail in certain reverse proxy situations. This option allows to define a manually override condition as regular expression for the remote ip address. For example "^10\.0\.0\.[1-3]$" */
  33. "overwritecondaddr" => "",
  34. /* A proxy to use to connect to the internet. For example "myproxy.org:88" */
  35. "proxy" => "",
  36. /* The optional authentication for the proxy to use to connect to the internet. The format is: [username]:[password] */
  37. "proxyuserpwd" => "",
  38. /* Theme to use for ownCloud */
  39. "theme" => "",
  40. /* Optional ownCloud default language - overrides automatic language detection on public pages like login or shared items. This has no effect on the user's language preference configured under "personal -> language" once they have logged in */
  41. "default_language" => "en",
  42. /* Path to the parent directory of the 3rdparty directory */
  43. "3rdpartyroot" => "",
  44. /* URL to the parent directory of the 3rdparty directory, as seen by the browser */
  45. "3rdpartyurl" => "",
  46. /* Default app to load on login */
  47. "defaultapp" => "files",
  48. /* Enable the help menu item in the settings */
  49. "knowledgebaseenabled" => true,
  50. /* Enable installing apps from the appstore */
  51. "appstoreenabled" => true,
  52. /* URL of the appstore to use, server should understand OCS */
  53. "appstoreurl" => "http://api.apps.owncloud.com/v1",
  54. /* Domain name used by ownCloud for the sender mail address, e.g. no-reply@example.com */
  55. "mail_domain" => "example.com",
  56. /* Enable SMTP class debugging */
  57. "mail_smtpdebug" => false,
  58. /* Mode to use for sending mail, can be sendmail, smtp, qmail or php, see PHPMailer docs */
  59. "mail_smtpmode" => "sendmail",
  60. /* Host to use for sending mail, depends on mail_smtpmode if this is used */
  61. "mail_smtphost" => "127.0.0.1",
  62. /* Port to use for sending mail, depends on mail_smtpmode if this is used */
  63. "mail_smtpport" => 25,
  64. /* SMTP server timeout in seconds for sending mail, depends on mail_smtpmode if this is used */
  65. "mail_smtptimeout" => 10,
  66. /* SMTP connection prefix or sending mail, depends on mail_smtpmode if this is used.
  67. Can be '', ssl or tls */
  68. "mail_smtpsecure" => "",
  69. /* authentication needed to send mail, depends on mail_smtpmode if this is used
  70. * (false = disable authentication)
  71. */
  72. "mail_smtpauth" => false,
  73. /* authentication type needed to send mail, depends on mail_smtpmode if this is used
  74. * Can be LOGIN (default), PLAIN or NTLM */
  75. "mail_smtpauthtype" => "LOGIN",
  76. /* Username to use for sendmail mail, depends on mail_smtpauth if this is used */
  77. "mail_smtpname" => "",
  78. /* Password to use for sendmail mail, depends on mail_smtpauth if this is used */
  79. "mail_smtppassword" => "",
  80. /* memcached hostname and port (Only used when xCache, APC and APCu are absent.) */
  81. "memcached_server" => array('localhost', 11211),
  82. /* How long should ownCloud keep deleted files in the trash bin, default value: 30 days */
  83. 'trashbin_retention_obligation' => 30,
  84. /* Disable/Enable auto expire for the trash bin, by default auto expire is enabled */
  85. 'trashbin_auto_expire' => true,
  86. /* allow user to change his display name, if it is supported by the back-end */
  87. 'allow_user_to_change_display_name' => true,
  88. /* Check 3rdparty apps for malicious code fragments */
  89. "appcodechecker" => "",
  90. /* Check if ownCloud is up to date */
  91. "updatechecker" => true,
  92. /* Are we connected to the internet or are we running in a closed network? */
  93. "has_internet_connection" => true,
  94. /* Check if the ownCloud WebDAV server is working correctly. Can be disabled if not needed in special situations*/
  95. "check_for_working_webdav" => true,
  96. /* Check if .htaccess protection of data is working correctly. Can be disabled if not needed in special situations*/
  97. "check_for_working_htaccess" => true,
  98. /* Place to log to, can be owncloud and syslog (owncloud is log menu item in admin menu) */
  99. "log_type" => "owncloud",
  100. /* File for the owncloud logger to log to, (default is ownloud.log in the data dir) */
  101. "logfile" => "",
  102. /* Loglevel to start logging at. 0=DEBUG, 1=INFO, 2=WARN, 3=ERROR (default is WARN) */
  103. "loglevel" => "",
  104. /* date format to be used while writing to the owncloud logfile */
  105. 'logdateformat' => 'F d, Y H:i:s',
  106. /* timezone used while writing to the owncloud logfile (default: UTC) */
  107. 'logtimezone' => 'Europe/Berlin',
  108. /* Append all database queries and parameters to the log file.
  109. (watch out, this option can increase the size of your log file)*/
  110. "log_query" => false,
  111. /* Enable or disable the logging of IP addresses in case of webform auth failures */
  112. "log_authfailip" => false,
  113. /*
  114. * Configure the size in bytes log rotation should happen, 0 or false disables the rotation.
  115. * This rotates the current owncloud logfile to a new name, this way the total log usage
  116. * will stay limited and older entries are available for a while longer. The
  117. * total disk usage is twice the configured size.
  118. * WARNING: When you use this, the log entries will eventually be lost.
  119. */
  120. 'log_rotate_size' => false, // 104857600, // 100 MiB
  121. /* Lifetime of the remember login cookie, default is 15 days */
  122. "remember_login_cookie_lifetime" => 60*60*24*15,
  123. /* Life time of a session after inactivity */
  124. "session_lifetime" => 60 * 60 * 24,
  125. /* Custom CSP policy, changing this will overwrite the standard policy */
  126. "custom_csp_policy" => "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *",
  127. /* Enable/disable X-Frame-Restriction */
  128. /* HIGH SECURITY RISK IF DISABLED*/
  129. "xframe_restriction" => true,
  130. /* The directory where the user data is stored, default to data in the owncloud
  131. * directory. The sqlite database is also stored here, when sqlite is used.
  132. */
  133. // "datadirectory" => "",
  134. /* Enable maintenance mode to disable ownCloud
  135. If you want to prevent users to login to ownCloud before you start doing some maintenance work,
  136. you need to set the value of the maintenance parameter to true.
  137. Please keep in mind that users who are already logged-in are kicked out of ownCloud instantly.
  138. */
  139. "maintenance" => false,
  140. "apps_paths" => array(
  141. /* Set an array of path for your apps directories
  142. key 'path' is for the fs path and the key 'url' is for the http path to your
  143. applications paths. 'writable' indicates whether the user can install apps in this folder.
  144. You must have at least 1 app folder writable or you must set the parameter 'appstoreenabled' to false
  145. */
  146. array(
  147. 'path'=> '/var/www/owncloud/apps',
  148. 'url' => '/apps',
  149. 'writable' => true,
  150. ),
  151. ),
  152. 'user_backends'=>array(
  153. array(
  154. 'class'=>'OC_User_IMAP',
  155. 'arguments'=>array('{imap.gmail.com:993/imap/ssl}INBOX')
  156. )
  157. ),
  158. //links to custom clients
  159. 'customclient_desktop' => '', //http://owncloud.org/sync-clients/
  160. 'customclient_android' => '', //https://play.google.com/store/apps/details?id=com.owncloud.android
  161. 'customclient_ios' => '', //https://itunes.apple.com/us/app/owncloud/id543672169?mt=8
  162. // PREVIEW
  163. 'enable_previews' => true,
  164. /* the max width of a generated preview, if value is null, there is no limit */
  165. 'preview_max_x' => null,
  166. /* the max height of a generated preview, if value is null, there is no limit */
  167. 'preview_max_y' => null,
  168. /* the max factor to scale a preview, default is set to 10 */
  169. 'preview_max_scale_factor' => 10,
  170. /* custom path for libreoffice / openoffice binary */
  171. 'preview_libreoffice_path' => '/usr/bin/libreoffice',
  172. /* cl parameters for libreoffice / openoffice */
  173. 'preview_office_cl_parameters' => '',
  174. /* whether avatars should be enabled */
  175. 'enable_avatars' => true,
  176. // Extra SSL options to be used for configuration
  177. 'openssl' => array(
  178. //'config' => '/absolute/location/of/openssl.cnf',
  179. ),
  180. /* whether usage of the instance should be restricted to admin users only */
  181. 'singleuser' => false,
  182. );