The configuration file, as specified by the -c CONFIGFILE command line option, allows you to specify some startup options. These options cannot be stored in a configuration zettel because either they are needed before Zettelstore can start or because of security reasons. For example, Zettelstore need to know in advance, on which network address is must listen or where zettel are stored. An attacker that is able to change the owner can do anything. Therefore only the owner of the computer on which Zettelstore runs can change this information.
The file for startup configuration must be created via a text editor in advance.
The syntax of the configuration file is the same as for any zettel metadata. The following keys are supported:
Specifies the TCP port through which you can reach the administrator console. A value of
0(the default) disables the administrator console. The administrator console will only be enabled if Zettelstore is started with the run sub-command.
On most operating systems, the value must be greater than
1024unless you start Zettelstore with the full privileges of a system administrator (which is not recommended).
- box-uri-X, where X is a number greater or equal to one
Specifies a box where zettel are stored. During startup X is counted up, starting with one, until no key is found. This allows to configure more than one box.
If no box-uri-1 key is given, the overall effect will be the same as if only box-uri-1 was specified with the value
dir://.zettel. In this case, even a key box-uri-2 will be ignored.
Allows to debug the Zettelstore software (mostly used by the developers) if set to true Disables any timeout values of the internal web server and does not send some security-related data. Sets log-level to
Do not enable it for a production server.
Specifies the default value for the (sub-) type of directory boxes. Zettel are typically stored in such boxes.
Must be set to true, if authentication is enabled and Zettelstore is not accessible not via HTTPS (but via HTTP). Otherwise web browser are free to ignore the authentication cookie.
Configures the network address, where the Zettelstore service is listening for requests. Syntax is: [NETWORKIP]:PORT, where NETWORKIP is the IP-address of the networking interface (or something like
0.0.0.0if you want to listen on all network interfaces, and PORT is the TCP port.
Specify the global logging level for the whole application, overwriting the level
debugset by configuration debug-mode. Can be changed at runtime, even for specific internal services, with the log-level command of the administrator console. Default:
When you are familiar to operate the Zettelstore, you might set the level to
errorto receive less noisy messages from the Zettelstore.
- Identifier of a zettel that contains data about the owner of the Zettelstore. The owner has full authorization for the Zettelstore. Only if owner is set to some value, user authentication is enabled.
A boolean value to make the access cookie persistent. This is helpful if you access the Zettelstore via a mobile device. On these devices, the operating system is free to stop the web browser and to remove temporary cookies. Therefore, an authenticated user will be logged off.
true, a persistent cookie is used. Its lifetime exceeds the lifetime of the authentication token (see option token-lifetime-html) by 30 seconds.
Puts the Zettelstore service into a read-only mode, if set to a true value. No changes are possible.
- token-lifetime-api, token-lifetime-html
Define lifetime of access tokens in minutes. Values are only valid if authentication is enabled, i.e. key owner is set.
token-lifetime-api is for accessing Zettelstore via its API. Default:
token-lifetime-html specifies the lifetime for the HTML views. It is automatically extended, when a new HTML view is rendered. Default:
Add the given string as a prefix to the local part of a Zettelstore local URL/URI when rendering zettel representations. Must begin and end with a slash character (
This allows to use a forwarding proxy server in front of the Zettelstore.
Be more verbose when logging data, if set to a true value.