Simple and straightforward file sharing application, compatible with applications such as ShareX.
- run
bundle install - Create a new credentials file via
VISUAL="nano" rails credentials:edit. You can just save changes and quit after file loads. - Create a file settings.local.yml in configuration directory (you can use settings.local.yml.example as a base).
- Edit hostname so it matches your domain, eg. 'http://yourdomain.example.com'
- You can also place it in config/settings/{environment.rb} if you have multiple environments
- run
rails db:migrate
rails console
user = User.create(password: 'yourpassword', password_confirmation: 'yourpassword', email: 'youremail@example.com')
- Set a custom uploader
- POST {http://yourdomain.example.com}/file_uploads/upload_via_api
- Navigate to /api_keys on your instance of MyVeryBox, create a new one.
- Add a header in ShareX - name is api_key, value is your API key value
- Set url to {json:url} in response in ShareX, it will contain the path to newly uploaded file.