Images Hosting Server
Go to file
Vyacheslav Anzhiganov 40e4ef4546 update readme 2022-04-18 07:21:36 +03:00
extra update readme 2022-04-18 07:21:36 +03:00
xStorageServer #5 remove old deps 2022-04-14 10:01:58 +03:00
.dockerignore #4 add docker files 2022-04-14 09:52:22 +03:00
.gitignore update gitignore 2022-04-17 13:43:10 +03:00
Dockerfile #4 update dockerfiles 2022-04-14 13:39:30 +03:00
Dockerfile-app #4 update dockerfiles 2022-04-14 13:39:30 +03:00
README.md update readme 2022-04-18 07:21:36 +03:00
config_origin.py update 2016-04-11 02:55:54 +03:00
docker-compose.yml #4 update docker compose 2022-04-14 10:44:19 +03:00
entrypoint.sh #4 add docker files 2022-04-14 09:52:22 +03:00
model.py update 2016-04-11 02:55:54 +03:00
requirements.txt #5 remove old deps 2022-04-14 10:01:58 +03:00
setup.py #5 remove old deps 2022-04-14 10:01:58 +03:00
xstorage-server.py #3 refactor and create restapi upload endpoint 2022-04-13 20:00:21 +03:00

README.md

xStorage

xStorage is an image hosting server written in Python using the Flask microframework.

RestAPI

API Documentation: https://documenter.getpostman.com/view/607407/Uyr4KKsu

Using libraries

See requirements.txt or setup.py file.

Install

Create ${HOME}/xstorageserver.ini with settings:

[APP]
DEBUG = False
UPLOAD_FOLDER = /home/xstorage/UPLOAD

Nginx

uWSGI

Supervisor

Docker

Build base image

docker build -t xstorage-base -f Dockerfile .

Build app image

docker build -t xstorage-app -f Dockerfile-app .

Docker Compose

version: '3'
services:
  app:
    image: vanzhiganov/xstorage-app:0.2.0
    ports:
        - "8080:8080"
    volumes:
        - ./extra/xstorageserver.ini:/etc/xstorage/config.ini
        - ./extra/uwsgi.ini:/source/extra/uwsgi.ini
        - ./tmp/UPLOAD:/data

Screenshots

Home Page Preview