module
Version:
v0.0.0-...-71b0ef4
Opens a new window with list of versions in this module.
Published: Sep 29, 2024
License: MIT
Opens a new window with license information.
README
¶
SyncKor
A sync server for the e-reader app KOReader.
Made to be a drop-in replacement for the official KOReader sync server.
Demo
https://github.com/user-attachments/assets/87db85a1-c015-4e63-985c-98e079071dec
Quick Start
- The project has an official Docker image published on github container registry.
- The repository is located HERE
- The environment variables that are needed can be found below in the Environment Variables section.
- For setting up the s3 bucket or s3 compatible storage, please reference the detailed guide in the litestream documentation
Getting Started
Dependencies
How to Setup the Application (Local)
- Local setup doesn't include litestream
- Setup a local MinIO object storage.
docker run -p 9000:9000 -p 9001:9001 minio/minio server /data --console-address ":9001"
- Follow the guide on litestream to create the bucket in the MinIO object storage.
- Run the make command to start the application.
make run
How to Setup the Application (Docker)
- Setup a local MinIO object storage.
docker run -p 9000:9000 -p 9001:9001 minio/minio server /data --console-address ":9001"
- Follow the guide on litestream to create the bucket in the MinIO object storage.
- Use the make command to build the docker image.
make docker-build
-
Edit the docker-compose.yml file to make sure the environment variables are correct.
-
Use the make command to run the docker image.
make docker-run
Environment Variables
| Key |
Description |
Example |
Note |
|
| PORT |
The port that the server will listen on |
8050 |
|
|
| REGISTRATION_ENABLED |
Whether or not registration is enabled |
true |
|
|
| LITESTREAM_ACCESS_KEY_ID |
The access key id for the object storage |
minioadmin |
The key will be different depending on which object storage you use, check the litestream guides to see the changes |
|
| LITESTREAM_SECRET_ACCESS_KEY |
The secret access key for the object storage |
minioadmin |
The key will be different depending on which object storage you use, check the litestream guides to see the changes |
|
| REPLICA_URL |
The url for the object storage |
s3://synckor-bkt-test.localhost:9000/db.sqlite |
|
|
License
This project is licensed under the MIT License - see the LICENSE file for details
Click to show internal directories.
Click to hide internal directories.