config.sample.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. /* Path to the parent directory of the 3rdparty directory */
  41. "3rdpartyroot" => "",
  42. /* URL to the parent directory of the 3rdparty directory, as seen by the browser */
  43. "3rdpartyurl" => "",
  44. /* Default app to load on login */
  45. "defaultapp" => "files",
  46. /* Enable the help menu item in the settings */
  47. "knowledgebaseenabled" => true,
  48. /* URL to use for the help page, server should understand OCS */
  49. "knowledgebaseurl" => "http://api.apps.owncloud.com/v1",
  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: 180 days */
  81. 'trashbin_retention_obligation' => 180,
  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. /* Append All database query and parameters to the log file.
  97. (whatch out, this option can increase the size of your log file)*/
  98. "log_query" => false,
  99. /* Lifetime of the remember login cookie, default is 15 days */
  100. "remember_login_cookie_lifetime" => 60*60*24*15,
  101. /* Life time of a session after inactivity */
  102. "session_lifetime" => 60 * 60 * 24,
  103. /* Custom CSP policy, changing this will overwrite the standard policy */
  104. "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 *",
  105. /* Enable/disable X-Frame-Restriction */
  106. /* HIGH SECURITY RISK IF DISABLED*/
  107. "xframe_restriction" => true,
  108. /* The directory where the user data is stored, default to data in the owncloud
  109. * directory. The sqlite database is also stored here, when sqlite is used.
  110. */
  111. // "datadirectory" => "",
  112. /* Enable maintenance mode to disable ownCloud */
  113. "maintenance" => false,
  114. "apps_paths" => array(
  115. /* Set an array of path for your apps directories
  116. key 'path' is for the fs path and the key 'url' is for the http path to your
  117. applications paths. 'writable' indicate if the user can install apps in this folder.
  118. You must have at least 1 app folder writable or you must set the parameter : appstoreenabled to false
  119. */
  120. array(
  121. 'path'=> '/var/www/owncloud/apps',
  122. 'url' => '/apps',
  123. 'writable' => true,
  124. ),
  125. ),
  126. 'user_backends'=>array(
  127. array(
  128. 'class'=>'OC_User_IMAP',
  129. 'arguments'=>array('{imap.gmail.com:993/imap/ssl}INBOX')
  130. )
  131. ),
  132. //links to custom clients
  133. 'customclient_desktop' => '', //http://owncloud.org/sync-clients/
  134. 'customclient_android' => '', //https://play.google.com/store/apps/details?id=com.owncloud.android
  135. 'customclient_ios' => '' //https://itunes.apple.com/us/app/owncloud/id543672169?mt=8
  136. );