config.php 3.2 KB

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