config.sample.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. /* How long should ownCloud keep deleted files in the trash bin, default value: 30 days */
  81. 'trashbin_retention_obligation' => 30,
  82. /* allow user to change his display name, if it is supported by the back-end */
  83. 'allow_user_to_change_display_name' => true,
  84. /* Check 3rdparty apps for malicious code fragments */
  85. "appcodechecker" => "",
  86. /* Check if ownCloud is up to date */
  87. "updatechecker" => true,
  88. /* Are we connected to the internet or are we running in a closed network? */
  89. "has_internet_connection" => true,
  90. /* Place to log to, can be owncloud and syslog (owncloud is log menu item in admin menu) */
  91. "log_type" => "owncloud",
  92. /* File for the owncloud logger to log to, (default is ownloud.log in the data dir) */
  93. "logfile" => "",
  94. /* Loglevel to start logging at. 0=DEBUG, 1=INFO, 2=WARN, 3=ERROR (default is WARN) */
  95. "loglevel" => "",
  96. /* date format to be used while writing to the owncloud logfile */
  97. 'logdateformat' => 'F d, Y H:i:s',
  98. /* Append all database queries and parameters to the log file.
  99. (watch out, this option can increase the size of your log file)*/
  100. "log_query" => false,
  101. /*
  102. * Configure the size in bytes log rotation should happen, 0 or false disables the rotation.
  103. * This rotates the current owncloud logfile to a new name, this way the total log usage
  104. * will stay limited and older entries are available for a while longer. The
  105. * total disk usage is twice the configured size.
  106. * WARNING: When you use this, the log entries will eventually be lost.
  107. */
  108. 'log_rotate_size' => false, // 104857600, // 100 MiB
  109. /* Lifetime of the remember login cookie, default is 15 days */
  110. "remember_login_cookie_lifetime" => 60*60*24*15,
  111. /* Life time of a session after inactivity */
  112. "session_lifetime" => 60 * 60 * 24,
  113. /* Custom CSP policy, changing this will overwrite the standard policy */
  114. "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 *",
  115. /* Enable/disable X-Frame-Restriction */
  116. /* HIGH SECURITY RISK IF DISABLED*/
  117. "xframe_restriction" => true,
  118. /* The directory where the user data is stored, default to data in the owncloud
  119. * directory. The sqlite database is also stored here, when sqlite is used.
  120. */
  121. // "datadirectory" => "",
  122. /* Enable maintenance mode to disable ownCloud */
  123. "maintenance" => false,
  124. "apps_paths" => array(
  125. /* Set an array of path for your apps directories
  126. key 'path' is for the fs path and the key 'url' is for the http path to your
  127. applications paths. 'writable' indicates whether the user can install apps in this folder.
  128. You must have at least 1 app folder writable or you must set the parameter 'appstoreenabled' to false
  129. */
  130. array(
  131. 'path'=> '/var/www/owncloud/apps',
  132. 'url' => '/apps',
  133. 'writable' => true,
  134. ),
  135. ),
  136. 'user_backends'=>array(
  137. array(
  138. 'class'=>'OC_User_IMAP',
  139. 'arguments'=>array('{imap.gmail.com:993/imap/ssl}INBOX')
  140. )
  141. ),
  142. //links to custom clients
  143. 'customclient_desktop' => '', //http://owncloud.org/sync-clients/
  144. 'customclient_android' => '', //https://play.google.com/store/apps/details?id=com.owncloud.android
  145. 'customclient_ios' => '', //https://itunes.apple.com/us/app/owncloud/id543672169?mt=8
  146. // PREVIEW
  147. 'enable_previews' => true,
  148. /* the max width of a generated preview, if value is null, there is no limit */
  149. 'preview_max_x' => null,
  150. /* the max height of a generated preview, if value is null, there is no limit */
  151. 'preview_max_y' => null,
  152. /* the max factor to scale a preview, default is set to 10 */
  153. 'preview_max_scale_factor' => 10,
  154. /* custom path for libreoffice / openoffice binary */
  155. 'preview_libreoffice_path' => '/usr/bin/libreoffice',
  156. /* cl parameters for libreoffice / openoffice */
  157. 'preview_office_cl_parameters' => '',
  158. // Extra SSL options to be used for configuration
  159. 'openssl' => array(
  160. //'config' => '/absolute/location/of/openssl.cnf',
  161. ),
  162. );