Media-Proxy is a lightweight media proxy for Misskey servers. It is approximately 3KB in size and provides minimal functionality for proxying media.
git clone https://github.com/AmaseCocoa/media-proxy.git
cd media-proxy
pip install -r requirements.txt
docker pull amasecocoa/media-proxy
docker run -d --name media-proxy -p 3003:3003 -e PORT=3030amasecocoa/media-proxy
Start the server with the following command.
python server.py
Use environment variables to configure settings.
PORT: The port number the server listens on (default: 3003)EXPIRES: The length of time to cache media (default: 3600)Example:
export PORT=8000
export EXPIRES=7200
To send an image request to a media proxy, use the following URL format:
http://host/proxy/image.webp?url=https://example.com/image.png
The url parameter is the URL of the image you wish to proxy.
To set up the development environment, do the following:
pdm install
pdm run python server.py
This project is released under the MIT License. See the LICENSE file for more information.
Content type
Image
Digest
sha256:c77f207bc…
Size
296.4 MB
Last updated
about 2 years ago
docker pull amasecocoa/media-proxy