Host images and media you post from your nostr client in your own WordPress installation using this plug-in.
This is an early version, just the minimal needed to get things working. It doesn't support all the features of a fully fledged nostr backend, for that look at solutions like: https://github.com/quentintaranpino/nostrcheck-api-ts
- Upload media using HTTP Auth (NIP-98) and HTTP File Storage Integration (NIP-96)
- Keeps original image and generates a scaled version
- Media will also be available in your WordPress back-end on the Media page.
- PHP 7.4 or higher, with xml and gmp extensions
- Mininum WordPress version unknown, tested with 6.3.2
(Tutorial video here: https://nostur.com/v/nostr-media.mp4)
- In WordPress go to Plugins -> Add New -> Upload Plugin -> Choose nostr-media.zip -> Install Now -> Activate Plugin
- Go to Users -> Edit -> Nostr Media -> Public key (npub) -> Enter your npub here, this npub/user will be allowed to upload files to this WordPress installation. Click Update Profile to save.
- Enter the URL of your WordPress installation as the File Storage Server address, eg: https://your-website.com
- Happy uploading!
- Make sure your WordPress installation allows large uploads, you can put this in your .htaccess
php_value upload_max_filesize 128M
php_value post_max_size 128M
- git clone this repository
- run
composer install
- Copy entire folder to your WordPress plugins directory