8/18/2023 0 Comments Backblaze cloudflare![]() I made the change illustrated below, which resolved the issue, and now permits the Mastodon web components to be proxied behind CloudFlare, but also allows me to serve my media behind the B2 bucket, with a nicely-branded FQDN: It turned out ( as I discovered after turning on access log debugging in Traefik) that the above transform rule was applied to all traffic hitting my DNS name, and happily transforming every URL requested from Mastodon! As soon as I enabled proxying for my instance, I'd get weird 404s when trying to access Mastodon. ![]() The initial config based on the transform rule linked above worked great, when my instance was not being proxied by CloudFlare. I found some instructions by the BackBlaze team on how to implement CloudFlare caching of B2 buckets using a custom domain, using CloudFlare's transform rules. I also wanted my media URLs to be more "branded" that the default B2 bucket URLs. Not knowing up-front how much I'd be using the media storage, I felt that this was a sensible idea. How to CDN Mastodon with CloudflareĪfter stumbling across some #mastoadmin posts re the " Bandwidth Alliance", I discovered that CloudFlare and Backblaze have an agreement, under which egress traffic from Backblaze B2 buckets is free, provided they're fronted by CloudFlare's CDN. Here's how to improve this, and also serve your Mastodon instance from behind a CloudFlare proxy. This turned out to be a great decision, as my media bucket quickly grew to over 100GB, but as a result, all of my media was served behind URLs like, and could technically be scraped without using my Mastodon URL. When setting up my Mastodon instance, I jumped directly to storing all media in object storage ( Backblaze B2, in my case), because I didn't want to allocate / estimate local storage requirements. To increase the number of files you can transfer simultaneously in both directions, change the Limit for concurrent downloads and uploads to both be 0.Mastodon Mastodon + CloudFlare + B2 Object Storage = free egress If you have a fast internet connection and want to be able to transfer multiple files at the same time, in the Settings menu, click on Transfers.īy default, you can only upload one file at a time, and also only download one file at a time, even though the Maximum simultaneous transfers is set to 6. Increase the Timeout to 300 seconds, and the Maximum number of retries to 15. In the menu bar, click on Edit -> Settings, and then click on Connection. To help overcome this, increase the Timeout and number of retries. If you have problems when transferring large files, it could be that just one of the parts had a transfer issue, but then the whole file transfer will fail. When transferring a large file, it is broken down into multiple parts. Internet connections can sometimes be unreliable, and this especially causes problems when uploading large files. Optional Settings for Increased Reliability and Speed. To download, perform the same file selection steps on the right side of the screen, and then click on Download. The files will then start immediately uploading to B2. Right-click (Windows) or CTRL-click (MacOS) on the selected files and click on Upload.Use the SHIFT key to select a block of files use the CTRL key (Windows) or CMD key (MacOS) to select multiple non-sequential files. Select the files that you want to transfer.On the right side of the screen, navigate to the directory with the files you want to upload to B2. ![]() Method 2: To Upload follow these steps.Method 1: Simply drag and drop files, to either upload or download them from B2.Note: All bucket names must be globally unique, not just unique to your account. If you want to create a new bucket, right click on the right side and choose “Create directory”, and then enter the name for your new bucket. On the left side, you will see your local files, and on the right side, your list of buckets in your Backblaze B2 account. (For more information about Application Keys, Key IDs, and how to manage them on your Backblaze account, please view this article.)ĭouble-click on Backblaze B2 to be connected to your account. Select Backblaze B2 as the protocol, enter 443 for the Port, and then enter your B2 keyID for the Key ID, and your appKey for the Application Key. On the left-hand side, change the name New Site to a descriptive name for this connection (ex. You can download Filezilla Pro from their webpage here: īelow are the steps for configuring and optimizing Filezilla Pro (Windows)ġ) In the menu bar, click on File -> Site Manager Using Filezilla Pro you can quickly browse and transfer data in and out of your B2 Bucket. Filezilla Pro is an FTP tool that supports B2 Cloud Storage and has been tested by Backblaze.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |