Skip to content

Simple implementation of the KOReader position sync server for self-hosting at home with discord notifications built in.

Notifications You must be signed in to change notification settings

donkevlar/KOReaderPyLink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KOReaderPyLink

Koreader position sync server

Description

This is a simple implementation of the KOReader (https://github.com/koreader/koreader) position sync server for self-hosting at home which has docker support. This is a modified fork of b1n4ryj4n/koreader-sync with some additional logging and slightly modified endpoints.

Dependencies

Environment Variables

  • RECEIVE_RANDOM_DEVICE_ID ("True"|"False")

Set it true to retrieve always a random device id to force a progress sync. This is usefull if you only sync your progress from one device and usually delete the *.sdr files with some cleaning tools.

  • OPEN_REGISTRATIONS ("True"|"False")

Enable/disable new registrations to the server. Useful if you want to run a private server for a few users, although it doesn't necessarily improve security by itself. Set to True (enabled) by default.

  • WEBHOOK_ENABLED ("True"|"False")

Enable/disable the discord webhook functionality. Note: Currently only have registrations sending out a notification.

  • WEBHOOK_URL (String)

Discord webhook url, WEBHOOK_ENABLED must be set to True for this to take effect.

Docker Installation

Prerequisites

Steps

  1. Clone the repository:
    git clone https://github.com/donkevlar/KOReaderPyLink.git
    cd KOReaderPyLink
  2. Build and run the container, setting the environment variables:
    docker build -t koreaderpylink .
    docker run -d -v $(pwd)/data:/app/data -p 8081:8081 --name koreaderpylink      -e RECEIVE_RANDOM_DEVICE_ID="False"      -e OPEN_REGISTRATIONS="True"      koreaderpylink

Installing through Unraid Template

This is also available via the unraid community application store. Search for KOReaderPyLink.

Connection

KOReader Setup

    1. Navigate to the setup menu (Wrench and screwdriver icon)
    1. Under "Progress Sync" -> "Custom sync server". Use your server address: http://IP:8081 or behind a proxy manager https://sync.mydomanin.com. Register using a username and password and you're done!

About

Simple implementation of the KOReader position sync server for self-hosting at home with discord notifications built in.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 89.5%
  • Dockerfile 10.5%