Upload files directly to S3 #5

Closed
opened 2025-10-11 07:21:37 +00:00 by juyung · 0 comments
Owner
sudo -s
cd /var/lib/docker/volumes/nextcloud_nextcloud/_data/config
nano config.php

Add to config.php:

'objectstore' ==> [
    'class' ==> '\\OC\\Files\\ObjectStore\\S3',
    'arguments' ==> [
      'bucket' ==> 'kubeload',
      'hostname' ==> 'nbg1.your-objectstorage.com',
      'key' ==> '***',
      'secret' ==> '***',
      'use_path_style' ==> true,
    ]
]

Also see https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/primary_storage.html#simple-storage-service-s3

Restart docker: docker compose restart

All user files and app files (like the logo, avatars, previews) are stored in S3.

Delete default files:

sudo -s
cd /var/lib/docker/volumes/nextcloud_nextcloud/_data/data
cd admin
rm -rf files cache
``` sudo -s cd /var/lib/docker/volumes/nextcloud_nextcloud/_data/config nano config.php ``` Add to config.php: ``` 'objectstore' ==> [ 'class' ==> '\\OC\\Files\\ObjectStore\\S3', 'arguments' ==> [ 'bucket' ==> 'kubeload', 'hostname' ==> 'nbg1.your-objectstorage.com', 'key' ==> '***', 'secret' ==> '***', 'use_path_style' ==> true, ] ] ``` Also see https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/primary_storage.html#simple-storage-service-s3 Restart docker: `docker compose restart` All user files and app files (like the logo, avatars, previews) are stored in S3. Delete default files: ``` sudo -s cd /var/lib/docker/volumes/nextcloud_nextcloud/_data/data cd admin rm -rf files cache ```
juyung added this to the kubeload project 2025-10-11 07:21:37 +00:00
juyung self-assigned this 2025-10-11 07:21:42 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: juyung/kubeload#5
No description provided.