Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

activestorage-storj-s3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

activestorage-storj-s3

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ActiveStorage-Storj-S3

ActiveStorage-Storj-S3 is a ruby gem extension for activestorage-storj gem to provide Storj S3 Compatible Gateway support for some ActiveStorage features, e.g. direct upload which requires S3 presigned URL.

Requirements

Installation

  • Add this line to your Rails application's Gemfile:

    gem 'activestorage-storj-s3', '~> 1.0'
    

    And then execute:

    $ bundle install
    
  • Modify Storj configuration in config/storage.yml:

    storj:
      service: storj_s3   # change from "storj" to "storj_s3"
      ...
      # provide the Storj S3 gateway credentials
      s3_gateway:
        access_key_id: ""
        secret_access_key: ""
        endpoint: ""
        region: global
    

    The rest configurations are same as in activestorage-storj gem.

Running the Tests

  • Create configurations.yml file in test/dummy/config/environments/service folder, or copy the existing configurations.example.yml as configurations.yml.

  • Provide Storj configurations for both storj and storj_public services in configurations.yml:

    storj:
      service: storj_s3
      access_grant: ""
      bucket: ""
      auth_service_address: auth.storjshare.io:7777
      link_sharing_address: https://link.storjshare.io
      s3_gateway:
        access_key_id: ""
        secret_access_key: ""
        endpoint: ""
        region: global
    
    storj_public:
      service: storj_s3
      access_grant: ""
      bucket: ""
      auth_service_address: auth.storjshare.io:7777
      link_sharing_address: https://link.storjshare.io
      s3_gateway:
        access_key_id: ""
        secret_access_key: ""
        endpoint: ""
        region: global
      public: true
    
  • Run the tests:

    $ bin/test
    

FAQs

Package last updated on 30 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc