- --access-log
- Path to the access log file. This log contains information about clients
connecting to the server and making requests. By default no access logging
is done.
- --ajax-timeout
- Time (in seconds) to wait for a response from the server when making
queries.
- --auth-mode
- Choose the type of authentication used.
設定此伺服器的HTTP驗證方式,如果你將此伺服器至於反向代理後面的話請選擇"basic";除此之外請選擇"auto"。
- --auto-reload
- Automatically reload server when source code changes. Useful for
development. You should also specify a small value for the shutdown
timeout.
- --ban-after
- Number of login failures for ban. The number of login failures after which
an IP address is banned
- --ban-for
- Ban IP addresses that have repeated login failures. Temporarily bans
access for IP addresses that have repeated login failures for the
specified number of minutes. Useful to prevent attempts at guessing
passwords. If set to zero, no banning is done.
- --book-list-mode
- Choose the default book list mode. Set the default book list mode that
will be used for new users. Individual users can override the default in
their own settings. The default is to use a cover grid.
- --custom-list-template
- Path to a JSON file containing a template for the custom book list mode.
The easiest way to create such a template file is to go to
Preferences-> Sharing over the net-> Book list template in calibre,
create the template and export it.
- --daemonize
- Run process in background as a daemon (Linux only).
- --displayed-fields
- Restrict displayed user-defined fields. Comma separated list of
user-defined metadata fields that will be displayed by the Content server
in the /opds and /mobile views. If you specify this option, any fields not
in this list will not be displayed. For example: my_rating,my_tags
- --enable-auth,
--disable-auth
- Password based authentication to access the server. Normally, the server
is unrestricted, allowing anyone to access it. You can restrict access to
predefined users with this option. By default, this option is
disabled.
- --enable-local-write,
--disable-local-write
- Allow un-authenticated local connections to make changes. Normally, if you
do not turn on authentication, the server operates in read-only mode, so
as to not allow anonymous users to make changes to your calibre libraries.
This option allows anybody connecting from the same computer as the server
is running on to make changes. This is useful if you want to run the
server without authentication but still use calibredb to make changes to
your calibre libraries. Note that turning on this option means any program
running on the computer can make changes to your calibre libraries. By
default, this option is disabled.
- --enable-log-not-found,
--disable-log-not-found
- Log HTTP 404 (Not Found) requests. Normally, the server logs all HTTP
requests for resources that are not found. This can generate a lot of log
spam, if your server is targeted by bots. Use this option to turn it off.
By default, this option is enabled.
- --enable-use-bonjour,
--disable-use-bonjour
- Advertise OPDS feeds via BonJour. Advertise the OPDS feeds via the BonJour
service, so that OPDS based reading apps can detect and connect to the
server automatically. By default, this option is enabled.
- --ignored-fields
- Ignored user-defined metadata fields. Comma separated list of user-defined
metadata fields that will not be displayed by the Content server in the
/opds and /mobile views. For example: my_rating,my_tags
- --listen-on
- The interface on which to listen for connections. The default is to listen
on all available IPv4 interfaces. You can change this to, for example,
"127.0.0.1" to only listen for connections from
the local machine, or to "::" to listen to all
incoming IPv6 and IPv4 connections.
- --log
- Path to log file for server log. This log contains server information and
errors, not access logs. By default it is written to stdout.
- --manage-users
- Manage the database of users allowed to connect to this server. You can
use it in automated mode by adding a --. See calibre-server
--manage-users -- help for details. See also the
--userdb option.
- --max-job-time
- Maximum time for worker processes. Maximum amount of time worker processes
are allowed to run (in minutes). Set to zero for no limit.
- --max-jobs
- Maximum number of worker processes.
對於大型作業任務設定執行作業單元的處理程序數是必需和有用的,如準備一本書供預覽、加入書籍、轉換等。通常,此類處理程序的最大數量基於
CPU
核心的數量。您可以透過這個設定來控制它。
- --max-log-size
- Max. log file size (in MB). The maximum size of log files, generated by
the server. When the log becomes larger than this size, it is
automatically rotated. Set to zero to disable log rotation.
- --max-opds-items
- Maximum number of books in OPDS feeds. The maximum number of books that
the server will return in a single OPDS acquisition feed.
- --max-opds-ungrouped-items
- Maximum number of ungrouped items in OPDS feeds. Group items in categories
such as author/tags by first letter when there are more than this number
of items. Set to zero to disable.
- --num-per-page
- Number of books to show in a single page. The number of books to show in a
single page in the browser.
- --port
- The port on which to listen for connections.
- --search-the-net-urls
- Path to a JSON file containing URLs for the "Search the
internet" feature. The easiest way to create such a file is to
go to Preferences-> Sharing over the net->Search the internet in
calibre, create the URLs and export them.
- --timeout
- Time (in seconds) after which an idle connection is closed.
- --trusted-ips
- Allow un-authenticated connections from specific IP addresses to make
changes. Normally, if you do not turn on authentication, the server
operates in read-only mode, so as to not allow anonymous users to make
changes to your calibre libraries. This option allows anybody connecting
from the specified IP addresses to make changes. Must be a comma separated
list of address or network specifications. This is useful if you want to
run the server without authentication but still use calibredb to make
changes to your calibre libraries. Note that turning on this option means
anyone connecting from the specified IP addresses can make changes to your
calibre libraries.
- --url-prefix
- A prefix to prepend to all URLs. Useful if you wish to run this server
behind a reverse proxy. For example use, /calibre as the URL prefix.
- --userdb
- Path to the user database to use for authentication. The database is a
SQLite file. To create it use --manage-users. You can read more
about managing users at:
https://manual.calibre-ebook.com/server.html#managing-user-accounts-from-the-command-line-only