-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added beta support for Bunny CDN as a storage provider.
* Note that Bunny CDN doesn't support ACLs so it can't do signed URLs like other cloud storage providers, so it is not suitable for WooCommerce, EDD or anything else where you want to protect individual files. * You can protect directories though and any files in a specified directory will be signed. This is probably a moving target feature wise. * Also note that this works differently then Bunny's WordPress plugin. Bunny's plugin works via pull where Media Cloud is push (it uploads your media to Bunny CDN). Which way is better is up to you to decide, though you can't use Bunny's plugin in a dev environment or on a localhost during dev. * Added documentation for Bunny CDN * Fixed Migrate to Mux task. * Migrating media now migrates .webp and .avif files regardless of what plugin generated them. * Fixes for some PHP 8.2 errors and notices.
- Loading branch information
Showing
8 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
views/wizard/cloud-storage/providers/bunnycdn/tutorial/step-1.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
<h1 id="setting-up-bunnycdn">Setting Up Bunny CDN</h1> | ||
<h2 class='track-pos' id='step-1-create-bucket'>Step 1 – Create Storage Zone</h2> | ||
<p>To get started...</p> | ||
<p>Get started by logging into the Bunny CDN dashboard. If you don't have an account with Bunny CDN, you can <a href="https://bunny.net?ref=33lsyjqfr3" target="_blank" rel="noopener">create one here</a>.</p> | ||
<p>Once in the dashboard, it should look something like this:</p> | ||
<figure><a href="https://docs-media.s3.ap-southeast-1.amazonaws.com/0e352206-8817-4fdd-9268-5dd179e73b64.png" target="_blank" rel="noopener"><img src="https://docs-media.s3.ap-southeast-1.amazonaws.com/0e352206-8817-4fdd-9268-5dd179e73b64.png" alt="Step 1 - Bunny CDN Dashboard"></a></figure> | ||
<p>Click on the <strong>Storage</strong> link on the left hand side (#1) and then click on <strong>Add Storage Zone</strong> (#2). When you click on that you'll be presented with this screen:</p> | ||
<figure><a href="https://docs-media.s3.ap-southeast-1.amazonaws.com/ec6aebc0-60de-4c77-97e3-881e2be4a2b2.png" target="_blank" rel="noopener"><img src="https://docs-media.s3.ap-southeast-1.amazonaws.com/ec6aebc0-60de-4c77-97e3-881e2be4a2b2.png" alt="Step 2 - Create Storage Zone"></a></figure> | ||
<p>In the <strong>Storage Zone Name</strong> field supply a name for your zone. You can use alphanumeric characters, dashes and underscores but no spaces.</p> | ||
<p>Down a little further click on the <strong>Main Storage Region</strong>. This region should be closest to wherever your WordPress server is.</p> | ||
<p>Next, you'll need to select one or more regions to replicate your data to. This step is optional but highly recommended.</p> | ||
<p>Finally, scroll to the bottom of the page and click on the big orange <strong>Add Storage Zone</strong> button.</p> | ||
<h3 class='track-pos' id='step-1a-get-api-key'>Get Your API Key</h3> | ||
<p>After you've clicked that button, you'll be taken to your newly created storage zone's details page.</p> | ||
<figure><a href="https://docs-media.s3.ap-southeast-1.amazonaws.com/0e2bab57-55c8-484b-8a65-a8c2221e7d3c.png" target="_blank" rel="noopener"><img src="https://docs-media.s3.ap-southeast-1.amazonaws.com/0e2bab57-55c8-484b-8a65-a8c2221e7d3c.png" alt="Step 2 - Get API Key"></a></figure> | ||
<p>To get our API key, click on the <strong>FTP & API Access</strong> link. Towards the bottom of that screen you'll see a section marked <strong>Password</strong>. Click on the copy icon next to the first entry marked <strong>Password.</strong> This is your API key. Store it somewhere safe until we set up Media Cloud further down the tutorial.</p> | ||
<p>After you've saved your API key, we're going to need to create a pull zone. This is the CDN part of Bunny CDN. Click on the black <strong>Connect Pull Zone</strong> button in the upper right to move onto the next step.</p> |
14 changes: 12 additions & 2 deletions
14
views/wizard/cloud-storage/providers/bunnycdn/tutorial/step-2.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
<h1 class='track-pos' id='step-2-create-application-key'>Step 2 – Create a Pull Zone</h1> | ||
<p>...</p> | ||
<h2 class='track-pos' id='step-2-add-a-pull-zone'>Step 2 – Add a Pull Zone</h2> | ||
<p>When you click the <strong>Connect Pull Zone</strong> button you'll be presented with a pop-up dialog that looks like this:</p> | ||
<figure><a href="https://docs-media.s3.ap-southeast-1.amazonaws.com/da8c3206-a2f6-4058-b462-e433a7091487.png" target="_blank" rel="noopener"><img src="https://docs-media.s3.ap-southeast-1.amazonaws.com/da8c3206-a2f6-4058-b462-e433a7091487.png" alt="Step 3a - Add Pull Zone"></a></figure> | ||
<p>Simply click on the big orange button marked <strong>Add Pull Zone</strong>. That will take you to this page:</p> | ||
<figure><a href="https://docs-media.s3.ap-southeast-1.amazonaws.com/db965cca-5f3d-4dcf-94ab-cc8babf7466c.png" target="_blank" rel="noopener"><img src="https://docs-media.s3.ap-southeast-1.amazonaws.com/db965cca-5f3d-4dcf-94ab-cc8babf7466c.png" alt="Step 3b - Add Pull Zone"></a></figure> | ||
<p>On the add pull zone screen, enter in whatever name you want for the CDN domain. You can add your own domain later on, for now you'll want to use the XXXX.b-cdn.net domain that Bunny provides.</p> | ||
<p>Make sure that <strong>Origin Type</strong> is set to <strong>Storage Zone</strong> and that <strong>Storage Zone</strong> is set to the storage zone we made in the first step.</p> | ||
<p>Select any other options you want and then scroll to the bottom and click the big orange <strong>Add Pull Zone</strong> button.</p> | ||
<h3 class='track-pos' id='step-2a-get-pull-zone-url'>Get Your Pull Zone URL</h3> | ||
<p>After you've clicked <strong>Add Pull Zone</strong> and your pull zone has been created, you'll see this screen:</p> | ||
<figure><a href="https://docs-media.s3.ap-southeast-1.amazonaws.com/ea3a75af-15c7-428c-853c-92d55d2c779e.png" target="_blank" rel="noopener"><img src="https://docs-media.s3.ap-southeast-1.amazonaws.com/ea3a75af-15c7-428c-853c-92d55d2c779e.png" alt="Step 4 Get Pull Zone URL"></a></figure> | ||
<p>In the <strong>Linked Hostnames</strong> copy the domain name as we'll be using it in the next step.</p> |