Proxy Digital Ocean Spaces With Caddy

August 06, 2019

An upcoming project had a need to proxy Digital Ocean Spaces (an S3 compatible Object store) in order to serve static websites. It turned out to be relatively simple, so I figured I’d drop it here for future reference.

sudo vim /etc/caddy/Caddyfile {
  proxy / {
    header_upstream Host

BAM! Easy, proxied Digital Ocean Spaces, with an SSL cert provided by LetsEncrypt.