Paywalled Downloads

This page is a step-by-step tutorial of the process to secure a file (eg. ZIP) and make it available to your supporters only.

Prerequisites

  • You need to have an account with Digital Ocean.
  • You must have created a Space Bucket.
  • You must enable CORS for origin 'https://assets.moulinette.cloud' (under the "Settings" tab).

1. Upload and manage your files

  • This tutorial does not cover how to upload files to a Space Bucket. See How to Upload, Download, and Delete Files (Digital Ocean Docs).
  • Keep the files with "Private" permission. Otherwise, your files will be publicly accessible, no matter if you protect them with Moulinette.

Screenshot of files in a Space Bucket.

2. Configure Moulinette

  • Before you can secure files, you need to configure Moulinette with the necessary information so that it can integrate with your space bucket.
  • You can find the configurations on the following page: S3 Remote Storage Configuration
    • EndPoint: Go to Spaces (Digital Ocean). Click on a space, then copy the EndPoint on the upper right corner. The EndPoint has following format : https://[bucketname].[region].digitaloceanspaces.com. Only keep the last part [region].digitaloceanspaces.com.
    • Key and Secret: Go to Applications & API (Spaces keys) (Digital Ocean), then generate a new key. Note: it doesn't matter how you name the key.
  • Click on button "Test" to test the connectivity and integration with your Space Bucket.
  • Apply the settings to save your configuration.

Screenshot of the fully filled configuration form

3. Add a Secure Download

  • Browse your files in your Space Bucket.
  • Move your mouse over the file you want to secure and copy its address (endpoint).
  • Paste the address into Moulinette and click on the "add" button.
  • Moulinette should automatically recognize the validity of the address by displaying the Digital Ocean logo and pre-filling the file size.
  • You can organize your files into directories if you wish. Click on the "apply" button to complete the preparation.

Screenshot of Secured Downloads.

4. Publish (make downloads visible)

  • Your files are now protected by Moulinette (behind a paywall). The next steps are to make the downloads visible to your supporters (patrons).
  • Click on permissions icon.
  • Check all desired permissions and click the "Apply" button.
  • Congratulations, your downloads are now visible according to your choices. You have two options :
    • Share the following URL to your supporters: https://assets.moulinette.cloud/marketplace/secure-downloads. This page lists all Secure Downloads a user has access to.
    • Right-click on download icon and copy the address (URL). You can share this direct link publicly. Moulinette always check user authorizations before allowing a download.