preseed-config.php 766 B

123456789101112131415161718192021222324252627282930313233343536
  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 (getenv('OBJECT_STORE') === 's3') {
  20. $CONFIG['objectstore'] = [
  21. 'class' => 'OC\\Files\\ObjectStore\\S3',
  22. 'arguments' => array(
  23. 'bucket' => 'nextcloud',
  24. 'autocreate' => true,
  25. 'key' => 'dummy',
  26. 'secret' => 'dummy',
  27. 'hostname' => getenv('DRONE') === 'true' ? 'fake-s3' : 'localhost',
  28. 'port' => 4569,
  29. 'use_ssl' => false,
  30. // required for some non amazon s3 implementations
  31. 'use_path_style' => true
  32. )
  33. ];
  34. }