Static file hosting for Levana

If you have static files, such as images, PDFs, or data files, you can store these within Amazon S3 and have them publicly available on the static.levana.finance domain name. Ask Michael or Corey for access to upload files to S3 if needed.

S3 bucket

Cloudflare Workers

  • Within our Cloudflare account, there is a Cloudflare Workers job called static. This job is responsible for downloading files over insecure HTTP from Amazon and hosting them on Cloudflare.
  • The Cloudflare DNS for this static.levana.finance. It automatically uses Cloudflare’s caching and geodistribution CDN to reduce egress costs from AWS and improve performance for end users.

Cloudflare Redirect

  • We additionally have an assets.levana.finance domain name supported within Cloudflare.
  • This domain has a redirect rule set up to automatically redirect any requests from assets.levana.finance to instead use static.levana.finance.

AWS Cloudfront

We used to have these files accessible via AWS Cloudfront. That is no longer the case. Historical information:

  • Additionally, we have a domain name static.dragons.levana.finance that uses AWS Cloudfront to also serve the files from the S3 bucket.
  • This service is more expensive than Cloudflare, since AWS charges for each individual request. Cloudflare provides the service for free and provides caching to avoid additional AWS charges.
  • We still maintain this service because Cloudflare does not provide multilevel subdomain TLS certificates for free, and therefore cannot host on static.dragons.levana.finance.
  • Future possibilities to further streamline:
    • Update all code that referes to static.dragons.levana.finance to instead use static.levana.finance
    • Set up a redirect within AWS from static.dragons.levana.finance to static.levana.finance
    • Pay for Cloudflare’s Advanced Certificate Management feature ($10/month) and have the redirect live within Cloudflare