Calibre server configuration

From wikinotes

Documentation

user management https://manual.calibre-ebook.com/server.html#managing-user-accounts-from-the-command-line-only

Cookie Expiration

Cookie expiration is not configurable, but it's set in calibre/srv/auth.py.

Users

Add/Modify Users

# create/edit users
# (execute when calibre-server started w/o --enable-auth)
sudo -u calibre calibre-server --manage-users

Enable User Auth

# /usr/local/etc/rc.d/calibre

# add '--enable-auth' to your servicefile's command args
command_args="${command_args} ... --enable-auth"

Libraries

Calibre-Server can expose multiple libraries, by adding their paths to the end of the calibre invocation.

To create a new db

- get a book to add to library
- create directory for library (ex. manuals)
- run: calibredb add SeagateIronwolf-Datasheet.pdf --with-library manuals/  # creates library
- in your system service, append library path to calibre-server call