You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.php 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. /**
  3. * @author Christian Berendt <berendt@b1-systems.de>
  4. * @author hkjolhede <hkjolhede@gmail.com>
  5. * @author Michael Gapczynski <GapczynskiM@gmail.com>
  6. * @author Robin Appelman <icewind@owncloud.com>
  7. * @author Ross Nicoll <jrn@jrn.me.uk>
  8. * @author Thomas Müller <thomas.mueller@tmit.eu>
  9. * @author Vincent Petry <pvince81@owncloud.com>
  10. *
  11. * @copyright Copyright (c) 2015, ownCloud, Inc.
  12. * @license AGPL-3.0
  13. *
  14. * This code is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU Affero General Public License, version 3,
  16. * as published by the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Affero General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Affero General Public License, version 3,
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>
  25. *
  26. */
  27. // in case there are private configurations in the users home -> use them
  28. $privateConfigFile = $_SERVER['HOME'] . '/owncloud-extfs-test-config.php';
  29. if (file_exists($privateConfigFile)) {
  30. $config = include($privateConfigFile);
  31. return $config;
  32. }
  33. // this is now more a template now for your private configurations
  34. return array(
  35. 'ftp'=>array(
  36. 'run'=>false,
  37. 'host'=>'localhost',
  38. 'user'=>'test',
  39. 'password'=>'test',
  40. 'root'=>'/test',
  41. ),
  42. 'webdav'=>array(
  43. 'run'=>false,
  44. 'host'=>'localhost',
  45. 'user'=>'test',
  46. 'password'=>'test',
  47. 'root'=>'',
  48. // wait delay in seconds after write operations
  49. // (only in tests)
  50. // set to higher value for lighttpd webdav
  51. 'wait'=> 0
  52. ),
  53. 'owncloud'=>array(
  54. 'run'=>false,
  55. 'host'=>'localhost/owncloud',
  56. 'user'=>'test',
  57. 'password'=>'test',
  58. 'root'=>'',
  59. ),
  60. 'google'=>array(
  61. 'run'=> false,
  62. 'configured' => 'true',
  63. 'client_id' => '',
  64. 'client_secret' => '',
  65. 'token' => '',
  66. ),
  67. 'swift' => array(
  68. 'run' => false,
  69. 'user' => 'test',
  70. 'bucket' => 'test',
  71. 'region' => 'DFW',
  72. 'key' => 'test', //to be used only with Rackspace Cloud Files
  73. //'tenant' => 'test', //to be used only with OpenStack Object Storage
  74. //'password' => 'test', //to be use only with OpenStack Object Storage
  75. //'service_name' => 'swift', //should be 'swift' for OpenStack Object Storage and 'cloudFiles' for Rackspace Cloud Files (default value)
  76. //'url' => 'https://identity.api.rackspacecloud.com/v2.0/', //to be used with Rackspace Cloud Files and OpenStack Object Storage
  77. //'timeout' => 5 // timeout of HTTP requests in seconds
  78. ),
  79. 'smb'=>array(
  80. 'run'=>false,
  81. 'user'=>'test',
  82. 'password'=>'test',
  83. 'host'=>'localhost',
  84. 'share'=>'/test',
  85. 'root'=>'/test/',
  86. ),
  87. 'amazons3'=>array(
  88. 'run'=>false,
  89. 'key'=>'test',
  90. 'secret'=>'test',
  91. 'bucket'=>'bucket'
  92. //'hostname' => 'your.host.name',
  93. //'port' => '443',
  94. //'use_ssl' => 'true',
  95. //'region' => 'eu-west-1',
  96. //'test'=>'true',
  97. //'timeout'=>20
  98. ),
  99. 'dropbox' => array (
  100. 'run'=>false,
  101. 'root'=>'owncloud',
  102. 'configured' => 'true',
  103. 'app_key' => '',
  104. 'app_secret' => '',
  105. 'token' => '',
  106. 'token_secret' => ''
  107. ),
  108. 'sftp' => array (
  109. 'run'=>false,
  110. 'host'=>'localhost',
  111. 'user'=>'test',
  112. 'password'=>'test',
  113. 'root'=>'/test'
  114. ),
  115. 'sftp_key' => array (
  116. 'run'=>false,
  117. 'host'=>'localhost',
  118. 'user'=>'test',
  119. 'public_key'=>'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJPTvz3OLonF2KSGEKP/nd4CPmRYvemG2T4rIiNYjDj0U5y+2sKEWbjiUlQl2bsqYuVoJ+/UNJlGQbbZ08kQirFeo1GoWBzqioaTjUJfbLN6TzVVKXxR9YIVmH7Ajg2iEeGCndGgbmnPfj+kF9TR9IH8vMVvtubQwf7uEwB0ALhw== phpseclib-generated-key',
  120. 'private_key'=>'test',
  121. 'root'=>'/test'
  122. ),
  123. );