config.php 2.2 KB

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