/ New Features

Fly + Dropbox: Resurrecting Public Dropbox

Fly is pleased to announce support for Dropbox. We've resurrected a feature you might like...

She Gone

In September of 2016, Dropbox declared that they will no longer render static web pages. You can store your files and share them, but you'll no longer be able to use Dropbox to host your pages, Dropbox stated.

During the summer of 2017, Dropbox had a similar announcement wherein they withdrew support for public files for all users. No longer could one upload a file and receive a nice public URL to share with others or plug into their web pages.

Between these two announcements the vision of Dropbox became clear: Dropbox is not a content delivery network and it is not web page host. It is a place to share files, large and small, with your friends and colleagues.

Fly in Public

When you weave Dropbox into Fly, you regain the ability to serve your files to the public.

Here's how you'd set it up...

First and foremost, you'll need a Dropbox account. It can be basic or pro. Within Dropbox, create a folder -- you can call it whatever you'd like, public, assets -- your choice. Within that folder, add a file.

Drop box interface

Next, create an account within Fly. Setting up an account involves connecting a hostname. Your hostname becomes the foundation that you build upon. Once you attach a hostname, you can add various applications, backends, functions, and services: Dropbox, Heroku, Ghost Blog, Squarespace, AWS Lambda, and more.

Select Dropbox then complete the OAuth process. Next, choose which Dropbox account you'd like and then add the name of a Dropbox folder within the account that you'd like to mount. This will connect your Dropbox account, represented by the directory you've chosen, to Fly: Dropbox:kellen@fly.io/public/.

Add dropbox backend to Fly

Next, you need to configure a rule. The rule will direct incoming traffic to your backend of choice.

Add rules to dropbox

Above, we've configured:

  • The priority: We want this to try to match after query to the root domain, so this has a priority of 5 instead of 1.

  • The Path to Match: This is the subfolder that users will need hit to access whatever is hosted within your application, service, or backend that you've connected. We've chosen /public/ to match the name of the Dropbox folder.

  • Opted to Use a Backend: Within this dropdown, we've chosen our Dropbox/public/ backend. We might have many different backends, applications, or services to choose from.

  • The Rewrite Path: We want to rewrite /, so that we don't add an additional path when we reach Dropbox.

Once the rule is done, your Dropbox files can be accessed by the public from your own hostname: https://goodroot.ca/public/EdmontonOilers.png

An image from Dropbox as a CDN

Summary

While Dropbox may be narrowing its focus, you can still unleash your files from its confines if you get creative. By authorizing your Dropbox account through Fly, you can serve your files to the public from any subfolder that you'd like.

Fly is like a reverse-proxy and a global load balancer, containing a library of potent Middleware; it's a CDN for developers. It's free to sign up, as are your first 2,000,000 requests and 100GB of transfer every month.

Sign in to Fly with Dropbox

Kellen Evan Person

https://goodroot.ca

Kellen Evan Person

A polite, forest-dwelling Canadian who enjoys writing and nature. He's spent near two decades building web applications and strives to keep development fun and light-hearted.

North Vancouver, Canada