GithubHelp home page GithubHelp logo

ourcloud's Introduction

Owncloud - Minio External Storage

By default Owncloud uses signature version 2 in authenticating to AWS api service. It can only be overridden to use v4 if region set is either eu-central-* or cn-*. Minio in contrary only supports version 4 and only validates us-east-1 / US region (at least for now). So a quick fix to go around this issue is to let Owncloud use signature v4 if the region set is us-east-1.

However this may require another modification if Minio decided to support any other regions aside from the existing one. A much better approach maybe is to add a flag or an option to trigger it's backend service to use the appropriate signature version, perhaps a checkbox in it's GUI and then update the backend service accordingly.

Description:

Updated the official Ownclouds docker image to use signature version 4 in authenticating to AWS S3 api service if region set is us-east-1.

Modifications:

         $requiresV4 = !$currentValue
             && isset($config['region'])
             && (strpos($config['region'], 'eu-central-') === 0
-                || strpos($config['region'], 'cn-') === 0);
+                || strpos($config['region'], 'cn-') === 0
+                || strpos($config['region'], 'us-east-') === 0);

Installation:

$ docker build -t owncloud/minio .
$ docker run -d -p 80:80 owncloud/minio:latest

Or pull from quay.io

docker pull quay.io/acaleph/owncloud:latest
docker run -d -p 80:80 quay.io/acaleph/owncloud:latest

Configuring Owncloud to Use Minio:

First, need to enable the External storage support module/app. Should be at Apps > Not enabled > External Storage Support. Then under Admin page, Enable User External Storage should be checked and then configure External storage (Amazon S3 type). For more details please check on the following links:

Example:

Folder name: Minio 
External storage type: Amazon S3
Bucket: myBucket
Hostname: minio.public.fqdn
Port: 12345
Region: us-east-1
Enable Path Style: (checked)
Access Key: S2M7XKJ1U***********
Secret Key: nUSjs2eGnvWi9kX4zzIBAoL*****************

If for instance myBucket is non-existent, then it will be created automatically. Hostname could also be the associated domain name of the minio service while port is the internal port. Thus it could be changed to:

...
Hostname: minio-internal
Port: 9000
..
.

ourcloud's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.