Categorygithub.com/janlauber/autokueng-data
repositorypackage
0.1.8
Repository: https://github.com/janlauber/autokueng-data.git
Documentation: pkg.go.dev

# README

autokueng-data

The api to upload images and other data and serve them via http for the autokueng-api

Installation

Env Variables

# must be the same as in autokueng backend api
export JWT_SECRET_KEY=<secret>
export URL=http://localhost:9000

Persistent storage

The data is stored in the following directory:

  • /opt/autokueng-data

Garbage collection

Send a request to /garbage-collect to trigger garbage collection.
In the body add the images you want to keep:

{
  "activeImages": [
    "image1.jpg",
    "image2.jpg",
    "image3.jpg"
  ]
}

Docker

docker run -d \
--name autokueng-data \
--mount source=autokueng-data,target=/opt/autokueng-data \
-p 9000:9000 \
janlauber/autokueng-data:latest