Sync Server
A simple Go server for self-hosting your Ascently sync data.
Getting Started
-
Create a
.envfile in this directory:IMAGE=git.atri.dad/atridad/ascently-sync:latest APP_PORT=8080 AUTH_TOKEN=your-super-secret-token DATA_FILE=/data/ascently.json IMAGES_DIR=/data/images ROOT_DIR=./ascently-dataSet
AUTH_TOKENto a long, random string.ROOT_DIRis where the server will store its data on your machine. -
Run with Docker:
docker-compose up -dThe server will be running on
http://localhost:8080.
API
All endpoints require an Authorization: Bearer <your-auth-token> header.
GET /sync: Downloadascently.json.POST /sync: Uploadascently.json.GET /images/{imageName}: Download an image.POST /images/{imageName}: Upload an image.
Check out main.go for the full details.