Skip to main content

Simple image uploader

Project description


Microservice for uploading all insecure images to Imgur by url.

Use Redis as cache backend and metadata storage.


Install uwsgi and python3 plugin:

sudo apt-get install uwsgi uwsgi-plugin-python3

Make virtualenv:

cd /opt
pyvenv-3.4 img_service
source img_service/bin/activate

Install from PyPI:

pip install imgtohttps

Create config file for app:

plugins = python34
master = true
enable-threads = true
processes = 4
module = imgtohttps.application:app
virtualenv = /opt/img_service
chdir = /opt/img_service
touch-reload = /opt/img_service/reload

Connect to nginx:

server {
    access_log off;
    location / {
        uwsgi_pass  unix:/run/uwsgi/app/img_service/socket;
        include             uwsgi_params;



curl -X POST -H "Content-Type: application/json" -d '{"url": ""}' http://localhost:2100


{"url": ""}


{"error": "Some error message"}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for imgtohttps, version 0.5.2
Filename, size File type Python version Upload date Hashes
Filename, size imgtohttps-0.5.2-py2.py3-none-any.whl (7.1 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size imgtohttps-0.5.2.tar.gz (16.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page