Offload to Hetzner Storage
Offload WordPress media to Hetzner S3 compatible storage
by Marinus Klasen · github.com/mklasen/offload-media-to-hetzner-storage
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mklasen/offload-media-to-hetzner-storage/archive/refs/heads/master.zipHetzner Offload
A WordPress plugin that offloads media files to Hetzner's S3-compatible storage.
Requirements
- PHP 7.4 or higher
- WordPress 5.0 or higher
- Composer
Installation
-
Clone this repository into your WordPress plugins directory:
cd wp-content/plugins git clone https://github.com/your-username/hetzner-offload.git -
Install dependencies using Composer:
cd hetzner-offload composer install -
Activate the plugin through the WordPress admin interface.
Configuration
Add the following constants to your wp-config.php file:
define('HETZNER_STORAGE_ENDPOINT', 's3.your-region.hetzner.cloud');
define('HETZNER_STORAGE_ACCESS_KEY', 'your-access-key');
define('HETZNER_STORAGE_SECRET_KEY', 'your-secret-key');
define('HETZNER_STORAGE_BUCKET', 'bucket-name');
Replace the values with your Hetzner storage credentials.
Features
- Automatically offloads uploaded media files to Hetzner storage
- Maintains WordPress media library integration
- Supports image srcset for responsive images
- Secure file handling with proper access controls
License
This plugin is licensed under the GPL v2 or later. # offload-media-to-hetzner-storage