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/folderwith newly created B2 path. Also updatef001according to your B2 bucket settings. - Use
rcloneto move uploads from your WordPress uploads to B2. - Enjoy!
# Serve local uploads from disk.
location ^~ /wp-content/uploads/ {