config.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. // in case there are private configurations in the users home -> use them
  8. $privateConfigFile = $_SERVER['HOME'] . '/owncloud-extfs-test-config.php';
  9. if (file_exists($privateConfigFile)) {
  10. $config = include($privateConfigFile);
  11. return $config;
  12. }
  13. // this is now more a template now for your private configurations
  14. return [
  15. 'ftp' => [
  16. 'run' => false,
  17. 'host' => 'localhost',
  18. 'user' => 'test',
  19. 'password' => 'test',
  20. 'root' => '/test',
  21. ],
  22. 'webdav' => [
  23. 'run' => false,
  24. 'host' => 'localhost',
  25. 'user' => 'test',
  26. 'password' => 'test',
  27. 'root' => '',
  28. // wait delay in seconds after write operations
  29. // (only in tests)
  30. // set to higher value for lighttpd webdav
  31. 'wait' => 0
  32. ],
  33. 'owncloud' => [
  34. 'run' => false,
  35. 'host' => 'localhost/owncloud',
  36. 'user' => 'test',
  37. 'password' => 'test',
  38. 'root' => '',
  39. ],
  40. 'swift' => [
  41. 'run' => false,
  42. 'user' => 'test',
  43. 'bucket' => 'test',
  44. 'region' => 'DFW',
  45. 'key' => 'test', //to be used only with Rackspace Cloud Files
  46. //'tenant' => 'test', //to be used only with OpenStack Object Storage
  47. //'password' => 'test', //to be use only with OpenStack Object Storage
  48. //'service_name' => 'swift', //should be 'swift' for OpenStack Object Storage and 'cloudFiles' for Rackspace Cloud Files (default value)
  49. //'url' => 'https://identity.api.rackspacecloud.com/v2.0/', //to be used with Rackspace Cloud Files and OpenStack Object Storage
  50. //'timeout' => 5 // timeout of HTTP requests in seconds
  51. ],
  52. 'smb' => [
  53. 'run' => false,
  54. 'user' => 'test',
  55. 'password' => 'test',
  56. 'host' => 'localhost',
  57. 'share' => '/test',
  58. 'root' => '/test/',
  59. ],
  60. 'amazons3' => [
  61. 'run' => false,
  62. 'key' => 'test',
  63. 'secret' => 'test',
  64. 'bucket' => 'bucket'
  65. //'hostname' => 'your.host.name',
  66. //'port' => '443',
  67. //'use_ssl' => 'true',
  68. //'region' => 'eu-west-1',
  69. //'test'=>'true',
  70. //'timeout'=>20
  71. ],
  72. 'sftp' => [
  73. 'run' => false,
  74. 'host' => 'localhost',
  75. 'user' => 'test',
  76. 'password' => 'test',
  77. 'root' => '/test'
  78. ],
  79. 'sftp_key' => [
  80. 'run' => false,
  81. 'host' => 'localhost',
  82. 'user' => 'test',
  83. 'public_key' => 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJPTvz3OLonF2KSGEKP/nd4CPmRYvemG2T4rIiNYjDj0U5y+2sKEWbjiUlQl2bsqYuVoJ+/UNJlGQbbZ08kQirFeo1GoWBzqioaTjUJfbLN6TzVVKXxR9YIVmH7Ajg2iEeGCndGgbmnPfj+kF9TR9IH8vMVvtubQwf7uEwB0ALhw== phpseclib-generated-key',
  84. 'private_key' => 'test',
  85. 'root' => '/test'
  86. ],
  87. ];