Skip to content

berkormanli/the-epube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Epube

web EPUB reader using EPUB.js, Bootstrap, and Calibre.

https://dev.tt-rss.org/fox/the-epube/wiki

Copyright (c) 2017 Andrew Dolgov (unless explicitly stated otherwise).

Requirements

  • HTTPS: required for service workers to work
  • PDO::sqlite
  • Calibre books directory and metadata.db

Host installation

Note: Consider using docker-compose instead. Most of the stuff below is handled for you automatically then.

git clone https://git.tt-rss.org/fox/the-epube.git the-epube

WARNING: since database folder is, by default, accessible for unauthenticated HTTP requests it is recommended to set SCRATCH_DB to a secure random value (i.e. db/long-random-string.db) or put it outside of scope accessible by your http server. Alternatively, you can simply block access to db:

location /the-epube/db {
   deny all;
}
  1. Apply database migrations
php ./update.php --update-schema
  1. Ensure both scratch.db and its containing folder (i.e. db/) are writable by the application, normally this means chown-ing them as www-data or whatever user your httpd is running under.
chown www-data db/ db/scratch.db
  1. Set path to Calibre, etc, in config.php:
putenv('EPUBE_BOOKS_DIR=/home/user/calibre/Books');

See classes/config.php for the list of settings.

  1. Setup users via update.php (command line)
php ./update.php --help

Acknowledgements

Normal favicon from Silk icon pack - http://www.famfamfam.com/lab/icons/silk/

License

GNU GPL version 3.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published