mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
experimental multi-s3 support
This commit is contained in:
parent
113b720980
commit
6f78480b48
7 changed files with 60 additions and 13 deletions
|
|
@ -40,7 +40,7 @@ RUN DEBIAN_FRONTEND=noninteractive ;\
|
|||
apt-get update && \
|
||||
apt-get install --assume-yes blackfire
|
||||
|
||||
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/autoconfig_mariadb.php configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/s3m.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
|
||||
|
|
|
|||
32
images/haze/configs/s3m.php
Normal file
32
images/haze/configs/s3m.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
'objectstore' => [
|
||||
'default' => [
|
||||
'class' => 'OC\Files\ObjectStore\S3',
|
||||
'arguments' => [
|
||||
'multibucket' => true,
|
||||
'num_buckets' => 64,
|
||||
'bucket' => 'nextcloud-',
|
||||
'autocreate' => true,
|
||||
'key' => 'dummy',
|
||||
'secret' => 'dummyj',
|
||||
'hostname' => 's3',
|
||||
'port' => 4566,
|
||||
'use_ssl' => false,
|
||||
'use_path_style' => true,
|
||||
'uploadPartSize' => 52428800,
|
||||
],
|
||||
],
|
||||
'root' => [
|
||||
'class' => 'OC\Files\ObjectStore\S3',
|
||||
'arguments' => [
|
||||
'bucket' => 'nextcloud-root',
|
||||
'autocreate' => true,
|
||||
'key' => 'dummy',
|
||||
'secret' => 'asd',
|
||||
'hostname' => 's3',
|
||||
'port' => 4566,
|
||||
'use_ssl' => false,
|
||||
'use_path_style' => true,
|
||||
'uploadPartSize' => 52428800,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
@ -50,6 +50,11 @@ then
|
|||
sed -i '/\/\/PLACEHOLDER/ r /root/s3mb.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "$S3M" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /root/s3m.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