This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path00001004051000.zettel
47 lines (37 loc) · 1.85 KB
/
00001004051000.zettel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
id: 00001004051000
title: The ''run'' sub-command
role: manual
tags: #command #configuration #manual #zettelstore
syntax: zmk
modified: 20210104115719
precursor: 00001004050000
=== ``zettelstore run``
This starts the web service.
```
zettelstore run [-c CONFIGFILE] [-d DIR] [-p PORT] [-r] [-v]
```
; ''-c CONFIGFILE''
: Specifies ''CONFIGFILE'' as a file, where [[start-up configuration data|00001004010000]] is read.
It is ignored, when the given file is not available, nor readable.
Default: ''./.zscfg''. (''.\\.zscfg'' on Windows)), where ''.'' denotes the ""current directory"".
; ''-d DIR''
: Specifies ''DIR'' as the directory that contains all zettel.
Default is ''./zettel'' (''.\\zettel'' on Windows), where ''.'' denotes the ""current directory"".
; [!debug]''-debug''
: Allows better debugging of the internal web server by disabling any timeout values.
You should specify this only as a developer.
Especially do not enable it for a production server.
[[https://blog.cloudflare.com/exposing-go-on-the-internet/#timeouts]] contains a good explanation for the usefulness of sensitive timeout values.
; ''-p PORT''
: Specifies the integer value ''PORT'' as the TCP port, where the Zettelstore service listens for requests.
Default: 23123.
Zettelstore listens only on ''127.0.0.1'', e.g. only requests from the current computer will be processed.
If you want to listen on network card to process requests from other computer, please use ''listen-addr'' of the configuration file as described below.
; ''-r''
: Puts the Zettelstore in read-only mode.
No changes are possible via the web interface / via the API.
This allows to publish your content without any risks of unauthorized changes.
; ''-v''
: Be more verbose in writing logs.
Writes the startup configuration to stderr.
Command line options take precedence over configuration file options.