Files
Ascently/sync
Atridad Lahiji a212f3f3b5
All checks were successful
Ascently - Docs Deploy / build-and-push (pull_request) Successful in 8m4s
2.3.0 - Unified logging and app intents
2025-11-20 21:00:00 -07:00
..
2025-10-13 14:54:54 -06:00
2025-10-13 14:54:54 -06:00
2025-10-13 14:54:54 -06:00
2025-10-13 14:54:54 -06:00
2025-10-14 14:26:56 -06:00
2025-10-18 23:02:31 -06:00

Sync Server

A simple Go server for self-hosting your Ascently sync data.

Getting Started

  1. Create a .env file 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-data
    

    Set AUTH_TOKEN to a long, random string. ROOT_DIR is where the server will store its data on your machine.

  2. Run with Docker:

    docker-compose up -d
    

    The server will be running on http://localhost:8080.

API

All endpoints require an Authorization: Bearer <your-auth-token> header.

  • GET /sync: Download ascently.json.
  • POST /sync: Upload ascently.json.
  • GET /images/{imageName}: Download an image.
  • POST /images/{imageName}: Upload an image.

Check out main.go for the full details.