Calibre server configuration: Difference between revisions

From wikinotes
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->


= User Management =
= Cookie Expiration =
<blockquote>
Cookie expiration is not configurable, but it's set in [https://github.com/kovidgoyal/calibre/blob/master/src/calibre/srv/auth.py#L20 calibre/srv/auth.py].
</blockquote><!-- Cookie Expiration -->
 
= Users =
<blockquote>
<blockquote>
Add/Modify Users
Add/Modify Users
Line 24: Line 29:
command_args="${command_args} ... --enable-auth"
command_args="${command_args} ... --enable-auth"
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- User Management -->
</blockquote><!-- Users -->
 
= Libraries =
<blockquote>
Calibre-Server can expose multiple libraries, by adding their paths to the end of the <code>calibre</code> invocation.
 
To create a new db
<syntaxhighlight lang="yaml">
- 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
</syntaxhighlight>
</blockquote><!-- Libraries -->

Latest revision as of 05:09, 31 August 2022

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