mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
add multibucket s3 option
This commit is contained in:
parent
bd709e0d53
commit
4ce3d45e64
6 changed files with 34 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ RUN DEBIAN_FRONTEND=noninteractive ;\
|
|||
pip3 install awscli-plugin-endpoint && \
|
||||
wget https://phar.phpunit.de/phpunit-8.phar -O /usr/local/bin/phpunit.phar
|
||||
|
||||
ADD configs/autoconfig_mariadb.php configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/swift.php configs/swiftv3.php configs/azure.php configs/config.php /root/
|
||||
ADD configs/autoconfig_mariadb.php configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/s3mb.php configs/swift.php configs/swiftv3.php configs/azure.php configs/config.php /root/
|
||||
ADD configs/nginx-app.conf /etc/nginx/
|
||||
|
||||
RUN mkdir --parent /var/log/cron
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
'objectstore' => [
|
||||
'class' => 'OC\Files\ObjectStore\S3',
|
||||
'arguments' => [
|
||||
// replace with your bucket
|
||||
'bucket' => 'nextcloud',
|
||||
'autocreate' => true,
|
||||
'key' => 'dummy',
|
||||
|
|
|
|||
15
images/haze/configs/s3mb.php
Normal file
15
images/haze/configs/s3mb.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'objectstore_multibucket' => [
|
||||
'class' => 'OC\Files\ObjectStore\S3',
|
||||
'arguments' => [
|
||||
'num_buckets' => 64,
|
||||
'bucket' => 'nextcloud-',
|
||||
'autocreate' => true,
|
||||
'key' => 'dummy',
|
||||
'secret' => 'dummyj',
|
||||
'hostname' => 's3',
|
||||
'port' => 4566,
|
||||
'use_ssl' => false,
|
||||
'use_path_style' => true,
|
||||
'uploadPartSize' => 52428800,
|
||||
],
|
||||
],
|
||||
|
|
@ -45,6 +45,11 @@ then
|
|||
sed -i '/\/\/PLACEHOLDER/ r /root/s3.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "$S3MB" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /root/s3mb.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "$SWIFT" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /root/swift.php' /var/www/html/config/config.php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue