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.
Andriy Kushnir (Orhideous) 0973b98d45 Simple error logging 8 years ago
imgtohttps Simple error logging 8 years ago
.gitignore Minor fixes in config structure 8 years ago
LICENSE Add license 8 years ago Stuff for PyPI 8 years ago
Makefile Bump version 8 years ago
README.rst Updated README 8 years ago
requirements.txt Requirements 8 years ago
setup.cfg Stuff for PyPI 8 years ago Simple error logging 8 years ago


Simple image uploader


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"}