((p "The configuration file, specified by the " (kbd "-c CONFIGFILE") " " (a (@ (href . "00001004051000")) "command line option") ", allows you to specify some startup options." " " "These cannot be stored in a " (a (@ (href . "00001004020000")) "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.") (p "The file for startup configuration must be created via a text editor in advance.") (p "The syntax of the configuration file is the same as for any zettel metadata." " " "The following keys are supported:") (dl (dt (a (@ (id . "admin-port")) (kbd "admin-port"))) (dd (p "Specifies the TCP port through which you can reach the " (a (@ (href . "00001004100000")) "administrator console") "." " " "A value of " (@L (@H "“") "0" (@H "”")) " (the default) disables it." " " "The administrator console will only be enabled if Zettelstore is started with the " (a (@ (href . "00001004051000")) (kbd "run") " sub-command") ".") (p "On most operating systems, the value must be greater than " (@L (@H "“") "1024" (@H "”")) " unless you start Zettelstore with the full privileges of a system administrator (which is not recommended).") (p "Default: " (@L (@H "“") "0" (@H "”")))) (dt (a (@ (id . "asset-dir")) (kbd "asset-dir"))) (dd (p "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 " (kbd "/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.") (p "Files within the given directory will not be managed by Zettelstore." (sup (@ (id . "fnref:1")) (a (@ (class . "zs-noteref") (href . "#fn:1") (role . "doc-noteref")) "1"))) (p "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 " (@L (@H "“") "index.html" (@H "”")) ".") (p "Default: " (@L (@H "“" "”")) ", no asset directory is set, the URL prefix " (kbd "/assets/") " is invalid.")) (dt (a (@ (id . "base-url")) (kbd "base-url"))) (dd (p "Sets the absolute base URL for the service.") (p "Note: " (a (@ (href . "#url-prefix")) (kbd "url-prefix")) " must be the suffix of " (kbd "base-url") ", otherwise the web service will not start." " " " " "Default: " (@L (@H "“") "http://127.0.0.1:23123/" (@H "”")) ".")) (dt (a (@ (id . "box-uri-x")) (kbd "box-uri-X")) ", where " (em "X") " is a number greater or equal to one") (dd (p "Specifies a " (a (@ (href . "00001004011200")) "box") " where zettel are stored." " " "During startup, " (em "X") " is incremented, starting with one, until no key is found." " " "This allows to configuring than one box.") (p "If no " (kbd "box-uri-1") " key is given, the overall effect will be the same as if only " (kbd "box-uri-1") " was specified with the value " (@L (@H "“") "dir://.zettel" (@H "”")) "." " " "In this case, even a key " (kbd "box-uri-2") " will be ignored.")) (dt (a (@ (id . "debug-mode")) (kbd "debug-mode"))) (dd (p "If set to " (a (@ (href . "00001006030500")) "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 " (a (@ (href . "#log-level")) (kbd "log-level")) " to " (@L (@H "“") "debug" (@H "”")) "." " " "Enables " (a (@ (href . "#runtime-profiling")) (kbd "runtime-profiling")) ".") (p "Do not enable it for a production server.") (p "Default: " (@L (@H "“") "false" (@H "”")))) (dt (a (@ (id . "default-dir-box-type")) (kbd "default-dir-box-type"))) (dd (p "Specifies the default value for the (sub-)type of " (a (@ (href . "00001004011400#type")) "directory boxes") ", in which Zettel are typically stored.") (p "Default: " (@L (@H "“") "notify" (@H "”")))) (dt (a (@ (id . "insecure-cookie")) (kbd "insecure-cookie"))) (dd (p "Must be set to " (a (@ (href . "00001006030500")) "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.") (p "Default: " (@L (@H "“") "false" (@H "”")))) (dt (a (@ (id . "insecure-html")) (kbd "insecure-html"))) (dd (p "Allows to use HTML, e.g. within supported markup languages, even if this might introduce security-related problems." " " "However, HTML containing the " (code "