config.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. 'swift' => array(
  62. 'run' => false,
  63. 'user' => 'test',
  64. 'bucket' => 'test',
  65. 'region' => 'DFW',
  66. 'key' => 'test', //to be used only with Rackspace Cloud Files
  67. //'tenant' => 'test', //to be used only with OpenStack Object Storage
  68. //'password' => 'test', //to be use only with OpenStack Object Storage
  69. //'service_name' => 'swift', //should be 'swift' for OpenStack Object Storage and 'cloudFiles' for Rackspace Cloud Files (default value)
  70. //'url' => 'https://identity.api.rackspacecloud.com/v2.0/', //to be used with Rackspace Cloud Files and OpenStack Object Storage
  71. //'timeout' => 5 // timeout of HTTP requests in seconds
  72. ),
  73. 'smb'=>array(
  74. 'run'=>false,
  75. 'user'=>'test',
  76. 'password'=>'test',
  77. 'host'=>'localhost',
  78. 'share'=>'/test',
  79. 'root'=>'/test/',
  80. ),
  81. 'amazons3'=>array(
  82. 'run'=>false,
  83. 'key'=>'test',
  84. 'secret'=>'test',
  85. 'bucket'=>'bucket'
  86. //'hostname' => 'your.host.name',
  87. //'port' => '443',
  88. //'use_ssl' => 'true',
  89. //'region' => 'eu-west-1',
  90. //'test'=>'true',
  91. //'timeout'=>20
  92. ),
  93. 'sftp' => array (
  94. 'run'=>false,
  95. 'host'=>'localhost',
  96. 'user'=>'test',
  97. 'password'=>'test',
  98. 'root'=>'/test'
  99. ),
  100. 'sftp_key' => array (
  101. 'run'=>false,
  102. 'host'=>'localhost',
  103. 'user'=>'test',
  104. 'public_key'=>'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJPTvz3OLonF2KSGEKP/nd4CPmRYvemG2T4rIiNYjDj0U5y+2sKEWbjiUlQl2bsqYuVoJ+/UNJlGQbbZ08kQirFeo1GoWBzqioaTjUJfbLN6TzVVKXxR9YIVmH7Ajg2iEeGCndGgbmnPfj+kF9TR9IH8vMVvtubQwf7uEwB0ALhw== phpseclib-generated-key',
  105. 'private_key'=>'test',
  106. 'root'=>'/test'
  107. ),
  108. );