0
Files
image-dl/README.md
2020-12-15 00:49:32 +03:00

958 B

Image-dl

What is this?

Image downloading tool.

What for

To download images. It can be used for im clients to save images via custom plugins.

How it works

Asynchronously downloads given picture.

curl -H 'url: http://server.tld/image.jpg' http://localhost:3088/image_dl

How to run it

As PSGI application, via UWSGI.

Before running this app should be bootstrapped via bootstrap.sh and cpanm.

Copy config_sample to config open it and edit, put there valid dir where images will be saved.

/usr/bin/uwsgi --yaml /var/www/image-dl/image-dl.yaml \
               --psgi /var/www/image-dl/image-dl.psgi \
               --logto /var/log/image-dl.log \
               --pidfile /var/run/image-dl.pid \
               --perl-local-lib /var/www/image-dl/vendor_perl