Seafile (http://seafile.com/) is an enterprise file sync and share solution that can make use of ObjSpace for file storage. This guide assumes you are running the Pro version of Seafile which includes S3 support. You can install the 3 user Pro version for free.

Step-by-step guide

Assuming that you have Seafile already install on your server

  1. Create three bucket on ObjSpace for commit, filesystem and block, for example myseafile-commit, myseafile-fs, myseafile-block.
  2. Login with SSH to the server running Seafile
  3. Edit /opt/seafile/conf/seafile.conf with your usual editor and add the following configuration, substituting your bucket names from step 1 and your Access/Secret keys

    [commit_object_backend]
    name = s3
    bucket = YOUR_COMMIT_BUCKET
    key_id = YOURACCESSKEY
    key = YOURSECRETKEY
    host = obj.space:443
    port = 443
    use_https = true
    memcached_options = --SERVER=localhost --POOL-MIN=10 --POOL-MAX=100
    [fs_object_backend]
    name = s3
    bucket = YOUR_FILESYSTEM_BUCKET
    key_id = YOURACCESSKEY
    key = YOURSECRETKEY
    host = obj.space:443
    port = 443
    use_https = true
    memcached_options = --SERVER=localhost --POOL-MIN=10 --POOL-MAX=100
    [block_backend]
    name = s3
    bucket = YOUR_BLOCK_BUCKET
    key_id = YOURACCESSKEY
    key = YOURSECRETKEY
    host = obj.space:443
    port = 443
    use_https = true
    memcached_options = --SERVER=localhost --POOL-MIN=10 --POOL-MAX=100
  4. Edit /etc/memcached.conf and change the line to increase startup RAM:

    Change:
    
    -m 64
    
    to:
    
    -m 128
  5. If you are running Debian, you must also copy the CA Server bundle:

    sudo mkdir -p /etc/pki/tls/certs
    sudo cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
    sudo ln -s /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/cert.pem
  6. You are now ready to restart Seafile and confirm that its working:

    service seafile-server restart
  7. Verify the creation of the Seafile folders/files in your S3 Client:

You're now ready to use Seafile with ObjSpace

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues