(((meta (@ (content . "Zettelstore startup configuration") (name . "title"))) (meta (@ (content . "manual") (name . "role"))) (meta (@ (content . "#configuration #manual #zettelstore") (name . "tags"))) (meta (@ (content . "zmk") (name . "syntax"))) (meta (@ (content . "00001003300000 00001003310000 00001004000000 00001004050000 00001004051100 00001005000000 00001005090000 00001006020000 00001007031200 00001007040310 00001008010000 00001008010500 00001010070200 00001012050200 00001012054600 00001012920000 00001017000000 00001018000000") (name . "back"))) (meta (@ (content . "00001003300000 00001003310000 00001004000000 00001004011200 00001004011400 00001004050000 00001004051000 00001004051100 00001004100000 00001005000000 00001005090000 00001006020000 00001007031200 00001007040310 00001008000000 00001008010000 00001008010500 00001010000000 00001010040100 00001010040700 00001010070200 00001010090100 00001012050200 00001012054600 00001012920000 00001017000000 00001018000000") (name . "backward"))) (meta (@ (content . "1") (name . "box-number"))) (meta (@ (content . "(c) 2020-present by Detlef Stern ") (name . "copyright"))) (meta (@ (content . "20210126175322") (name . "created"))) (meta (@ (content . "00001004011200 00001004011400 00001004020000 00001004051000 00001004059700 00001004100000 00001004101000 00001006030500 00001006050000 00001008000000 00001010000000 00001010040100 00001010040700 00001010090100 00001012000000 00001014000000") (name . "forward"))) (meta (@ (content . "en") (name . "lang"))) (meta (@ (content . "EUPL-1.2-or-later") (name . "license"))) (meta (@ (content . "20240220190138") (name . "modified"))) (meta (@ (content . "20240220190138") (name . "published"))) (meta (@ (content . "public") (name . "visibility")))) (p "The" " " "configuration" " " "file," " " "as" " " "specified" " " "by" " " "the" " " (kbd "-c CONFIGFILE") " " (a (@ (href . "00001004051000")) "command" " " "line" " " "option") "," " " "allows" " " "you" " " "to" " " "specify" " " "some" " " "startup" " " "options." " " "These" " " "options" " " "cannot" " " "be" " " "stored" " " "in" " " "a" " " (a (@ (href . "00001004020000")) "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.") (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" " " "the" " " "administrator" " " "console." " " "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" " " "note" " " "to" " " "users." " " "Examples" " " "would" " " "be" " " "presentation" " " "files," " " "PDF" " " "files," " " "music" " " "files" " " "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," " " "then" " " "the" " " "contents" " " "of" " " "the" " " "directory" " " "are" " " "listed" " " "to" " " "the" " " "user." " " "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" " " "counted" " " "up," " " "starting" " " "with" " " "one," " " "until" " " "no" " " "key" " " "is" " " "found." " " "This" " " "allows" " " "to" " " "configure" " " "more" " " "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 "Allows" " " "to" " " "debug" " " "the" " " "Zettelstore" " " "software" " " "(mostly" " " "used" " " "by" " " "the" " " "developers)" " " "if" " " "set" " " "to" " " (a (@ (href . "00001006030500")) "true") " " "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 "”")) ".") (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") "." " " "Zettel" " " "are" " " "typically" " " "stored" " " "in" " " "such" " " "boxes.") (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" " " "not" " " "via" " " "HTTPS" " " "(but" " " "via" " " "HTTP)." " " "Otherwise" " " "web" " " "browser" " " "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 "