1
0

preseed-config.php 859 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. $CONFIG = [
  3. 'appstoreenabled' => false,
  4. 'apps_paths' => [
  5. [
  6. 'path' => OC::$SERVERROOT . '/apps',
  7. 'url' => '/apps',
  8. 'writable' => true,
  9. ],
  10. ],
  11. ];
  12. if (is_dir(OC::$SERVERROOT.'/apps2')) {
  13. $CONFIG['apps_paths'][] = [
  14. 'path' => OC::$SERVERROOT . '/apps2',
  15. 'url' => '/apps2',
  16. 'writable' => false,
  17. ];
  18. }
  19. if (substr(strtolower(PHP_OS), 0, 3) === 'win') {
  20. $CONFIG['openssl'] = ['config' => OC::$SERVERROOT . '/tests/data/openssl.cnf'];
  21. }
  22. if (getenv('OBJECT_STORE') === 's3') {
  23. $CONFIG['objectstore'] = [
  24. 'class' => 'OC\\Files\\ObjectStore\\S3',
  25. 'arguments' => array(
  26. 'bucket' => 'nextcloud',
  27. 'autocreate' => true,
  28. 'key' => 'dummy',
  29. 'secret' => 'dummy',
  30. 'hostname' => 'localhost',
  31. 'port' => 4569,
  32. 'use_ssl' => false,
  33. // required for some non amazon s3 implementations
  34. 'use_path_style' => true
  35. )
  36. ];
  37. }