|
109 | 109 | ), |
110 | 110 | ]; |
111 | 111 | } |
| 112 | + |
| 113 | + |
| 114 | +if ($primary === 'rustfs') { |
| 115 | + $CONFIG += [ |
| 116 | + 'objectstore' => |
| 117 | + array ( |
| 118 | + 'class' => 'OC\\Files\\ObjectStore\\S3', |
| 119 | + 'arguments' => |
| 120 | + array ( |
| 121 | + 'bucket' => 'nc-' . $hostname, |
| 122 | + 'key' => 'nextcloud', |
| 123 | + 'secret' => 'nextcloud', |
| 124 | + 'hostname' => 'rustfs.local', |
| 125 | + 'port' => '80', |
| 126 | + 'proxy' => 'rustfs:9000', |
| 127 | + 'use_ssl' => false, |
| 128 | + 'use_path_style' => true, |
| 129 | + 'use_presigned_url' => true, |
| 130 | + 'autocreate' => true, |
| 131 | + 'verify_bucket_exists' => true, |
| 132 | + ), |
| 133 | + ) |
| 134 | + ]; |
| 135 | +} |
| 136 | + |
| 137 | +if ($primary === 'rustfs-multibucket') { |
| 138 | + $CONFIG += [ |
| 139 | + 'objectstore_multibucket' => array( |
| 140 | + 'class' => 'OC\\Files\\ObjectStore\\S3', |
| 141 | + 'arguments' => array( |
| 142 | + // optional, defaults to 64 |
| 143 | + 'num_buckets' => 64, |
| 144 | + // n integer in the range from 0 to (num_buckets-1) will be appended |
| 145 | + 'bucket' => 'nc-' . $hostname, |
| 146 | + 'key' => 'nextcloud', |
| 147 | + 'secret' => 'nextcloud', |
| 148 | + 'hostname' => 'rustfs.local', |
| 149 | + 'port' => '80', |
| 150 | + 'proxy' => 'rustfs:9000', |
| 151 | + 'use_presigned_url' => true, |
| 152 | + 'use_ssl' => false, |
| 153 | + 'use_path_style' => true, |
| 154 | + ), |
| 155 | + ), |
| 156 | + ]; |
| 157 | +} |
0 commit comments