Marc-AntoineA 05d2cf36a7 lint: call prettier everywhere 2 years ago
..
scripts 885ffab585 feat: create and commit tags, handle png/jpg for preview 2 years ago
.env.example cfacf44d08 feat: basic token authentication on server 2 years ago
.gitignore dce45aea73 feat(back): vectorisation in progress 3 years ago
README.md 05d2cf36a7 lint: call prettier everywhere 2 years ago
dockerfile 68a05a8f4a feat(server): dockerization seems to work! 2 years ago
main.py d342a85008 feat(server): thumbnail route support jpg files 2 years ago
requirements.txt 68a05a8f4a feat(server): dockerization seems to work! 2 years ago
wsgi.py 68a05a8f4a feat(server): dockerization seems to work! 2 years ago

README.md

Server

Code to run backtivisda script in the server

Requirements

  • images_manipulator and all its dependencies (version 0.0.2)
  • Install requirements.txt

    pip install -r requirements.txt
    

Getting Started

Environment Variables

Create .env file with:

  • SECRET_KEY
  • USERS : the list of the authenticated users

Developement

export FLASK_APP=main;flask run --port 4000 --debugger --reload

Create tokens for your users:

Script scripts/create_token.py

Production

sudo docker build -t aktivisdaserver:latest .
sudo docker run -p 4000:4000 -t aktivisdaserver:latest

Add to your nginx conf:

client_max_body_size 10M;