NGINX rules for serving offloaded WordPress uploads to B2 bucket
- Create a public B2 bucket and path to house your WordPress uploads.
- Add the following NGINX rules to Kinsta and replace
Bucket/folder
with newly created B2 path. Also updatef001
according to your B2 bucket settings. - Use
rclone
to move uploads from your WordPress uploads to B2. - Enjoy!
# Serve local uploads from disk.
location ^~ /wp-content/uploads/ {