Calibre server configuration: Difference between revisions

From wikinotes
(Created page with "= User Management = <blockquote> <syntaxhighlight lang="bash"> # create/edit users (execute when calibre-server started w/o --enable-auth) sudo -u calibre calibre-server --man...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
= User Management =
= Documentation =
<blockquote>
<blockquote>
{| class="wikitable"
|-
| user management || https://manual.calibre-ebook.com/server.html#managing-user-accounts-from-the-command-line-only
|-
|}
</blockquote><!-- Documentation -->
= 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>
Add/Modify Users
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# create/edit users (execute when calibre-server started w/o --enable-auth)
# create/edit users
# (execute when calibre-server started w/o --enable-auth)
sudo -u calibre calibre-server --manage-users
sudo -u calibre calibre-server --manage-users
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- User Management -->
 
Enable User Auth
<syntaxhighlight lang="bash">
# /usr/local/etc/rc.d/calibre
 
# add '--enable-auth' to your servicefile's command args
command_args="${command_args} ... --enable-auth"
</syntaxhighlight>
</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