config.php 3.7 KB

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