Media proxy project for pixelfed. This project makes images, videos from remote pixelfed instances URLs proxied through the homeserver.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bastard Operator From Hell fdd10a29f1 Added support for mastodon images 1 year ago
imgproxy Added support for mastodon images 1 year ago
LICENSE Initial commit 1 year ago
README.md initial commit 1 year ago

README.md

pixelfed-imgproxy-apache2

Media proxy project for pixelfed. This project makes images, videos from remote pixelfed instances URLs proxied through the homeserver.

Installation (standalone)

Copy the code to your pixelfed installation

cp -a imgproxy /var/www/public/imgproxy

Add the following lines in your apache Virtualhost configuration (replace pixel.nogafam.es to your instance URL)

AddOutputFilterByType SUBSTITUTE application/json
Substitute "s@(?<=\")https:\\\/\\\/[^\"]+\.(png|jpg|jpeg)@https:\\\/\\\/pixel.nogafam.es\\\/imgproxy\\\/?url=$0@i"
Substitute "s@(?<=\")https://[^\"]+\.(png|jpg|jpeg)@https://pixel.nogafam.es/imgproxy/?url=$0@i"

Enable mod_substitute on Apache

a2enmod substitute