Zettelstore startup configuration manual configuration manual zettelstore zmk 00001003300000 00001003310000 00001004000000 00001004050000 00001004051100 00001005000000 00001005090000 00001006020000 00001007031200 00001007040310 00001008010000 00001008010500 00001010070200 00001012050200 00001012054600 00001012920000 00001017000000 00001018000000 00001003300000 00001003310000 00001004000000 00001004010200 00001004011200 00001004011400 00001004050000 00001004051000 00001004051100 00001004100000 00001005000000 00001005090000 00001006020000 00001007031200 00001007040310 00001008000000 00001008010000 00001008010500 00001010000000 00001010040100 00001010040700 00001010070200 00001010090100 00001012050200 00001012054600 00001012920000 00001017000000 00001018000000 1 (c) 2020-present by Detlef Stern 20210126175322 00001004010200 00001004011200 00001004011400 00001004020000 00001004051000 00001004059700 00001004100000 00001004101000 00001006030500 00001006050000 00001008000000 00001010000000 00001010040100 00001010040700 00001010090100 00001012000000 00001014000000 en EUPL-1.2-or-later 20240926144803 20240926144803 public The configuration file, specified by the -c CONFIGFILE command line option, allows you to specify some startup options. These cannot be stored in a configuration zettel because they are needed before Zettelstore can start or because of security reasons. For example, Zettelstore needs to know in advance on which network address it 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: admin-port Specifies the TCP port through which you can reach the administrator console. A value of 0 (the default) disables it. 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 1024 unless you start Zettelstore with the full privileges of a system administrator (which is not recommended). Default: 0 asset-dir Allows to specify a directory whose files are allowed be transferred directly with the help of the web server. The URL prefix for these files is /assets/. You can use this if you want to transfer files that are too large for a zettel, such as presentation, PDF, music or video files. Files within the given directory will not be managed by Zettelstore. They will be managed by Zettelstore just in the very special case that the directory is one of the configured boxes. If you specify only the URL prefix in your web client, the contents of the directory are listed. To avoid this, create an empty file in the directory named index.html. Default: , no asset directory is set, the URL prefix /assets/ is invalid. base-url Sets the absolute base URL for the service. Note: url-prefix must be the suffix of base-url, otherwise the web service will not start. Default: http://127.0.0.1:23123/. box-uri-X, where X is a number greater or equal to one Specifies a box where zettel are stored. During startup, X is incremented, starting with one, until no key is found. This allows to configuring 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. debug-mode If set to true, allows to debug the Zettelstore software (mostly used by Zettelstore developers). Disables any timeout values of the internal web server and does not send some security-related data. Sets log-level to debug. Enables runtime-profiling. Do not enable it for a production server. Default: false default-dir-box-type Specifies the default value for the (sub-)type of directory boxes, in which Zettel are typically stored. Default: notify insecure-cookie Must be set to true if authentication is enabled and Zettelstore is not accessible via HTTPS (but via HTTP). Otherwise web browsers are free to ignore the authentication cookie. Default: false insecure-html Allows to use HTML, e.g. within supported markup languages, even if this might introduce security-related problems. However, HTML containing the