Proxy Digital Ocean Spaces With Caddy
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.
- Replace the initial domain (https://proxieds3.livearchivist.com) with your intended sub-domain.
- Replace the proxy address with the address of your spaces bucket, include a sub-directory if necessary.
header_upstreamstanza should be the same as the proxy, but drop
httpsand the sub-directory.
BAM! Easy, proxied Digital Ocean Spaces, with an SSL cert provided by LetsEncrypt.