File: api_hour.1

package info (click to toggle)
api-hour 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 188 kB
  • sloc: python: 363; makefile: 3
file content (220 lines) | stat: -rw-r--r-- 5,933 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
.TH API_HOUR "1" "July 2016" "api_hour (version 19.6.0)" "User Commands"
.SH NAME
api_hour \- command line runner for launching API-Hour with container
.SH DESCRIPTION
usage: api_hour [OPTIONS] [APP_MODULE]
.SS "optional arguments:"
.TP
\fB\-h\fR, \fB\-\-help\fR
show this help message and exit
.TP
\fB\-v\fR, \fB\-\-version\fR
show program's version number and exit
.TP
\fB\-\-ciphers\fR CIPHERS
Ciphers to use (see stdlib ssl module's) [TLSv1]
.TP
\fB\-\-check\-config\fR
Check the configuration. [False]
.TP
\fB\-\-log\-level\fR LEVEL
The granularity of Error log outputs. [info]
.TP
\fB\-\-limit\-request\-fields\fR INT
Limit the number of HTTP headers fields in a request.
[100]
.TP
\fB\-\-proxy\-allow\-from\fR PROXY_ALLOW_IPS
Front\-end's IPs from which allowed accept proxy
requests (comma separate). [127.0.0.1]
.TP
\fB\-\-access\-logformat\fR STRING
The access log format. [%(h)s %(l)s %(u)s %(t)s
"%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"]
.TP
\fB\-\-ssl\-version\fR SSL_VERSION
SSL version to use (see stdlib ssl module's)
[_SSLMethod.PROTOCOL_TLSv1]
.TP
\fB\-\-chdir\fR CHDIR
Chdir to specified directory before apps loading.
[/tmp/build/api\-hour\-0.8.1]
.TP
\fB\-\-log\-syslog\-facility\fR SYSLOG_FACILITY
Syslog facility name [user]
.TP
\fB\-\-limit\-request\-field_size\fR INT
Limit the allowed size of an HTTP request header
field. [8190]
.TP
\fB\-\-threads\fR INT
The number of worker threads for handling requests.
[1]
.TP
\fB\-\-statsd\-host\fR STATSD_ADDR
``host:port`` of the statsd server to log to. [None]
.TP
\fB\-\-preload\fR
Load application code before the worker processes are
forked. [False]
.TP
\fB\-g\fR GROUP, \fB\-\-group\fR GROUP
Switch worker process to run as this group. [1000]
.TP
\fB\-R\fR, \fB\-\-enable\-stdio\-inheritance\fR
Enable stdio inheritance. [False]
.TP
\fB\-\-worker\-connections\fR INT
The maximum number of simultaneous clients. [1000]
.TP
\fB\-\-certfile\fR FILE
SSL certificate file [None]
.TP
\fB\-D\fR, \fB\-\-daemon\fR
Daemonize the Gunicorn process. [False]
.TP
\fB\-\-limit\-request\-line\fR INT
The maximum size of HTTP request line in bytes. [4094]
.TP
\fB\-\-log\-syslog\-to\fR SYSLOG_ADDR
Address to send syslog messages. [udp://localhost:514]
.TP
\fB\-b\fR ADDRESS, \fB\-\-bind\fR ADDRESS
The socket to bind. [['127.0.0.1:8000']]
.TP
\fB\-\-worker\-tmp\-dir\fR DIR
A directory to use for the worker heartbeat temporary
file. [None]
.TP
\fB\-\-log\-config\fR FILE
The log config file to use. [None]
.TP
\fB\-u\fR USER, \fB\-\-user\fR USER
Switch worker processes to run as this user. [1000]
.TP
\fB\-\-backlog\fR INT
The maximum number of pending connections. [2048]
.TP
\fB\-\-pythonpath\fR STRING
A comma\-separated list of directories to add to the
Python path. [None]
.TP
\fB\-n\fR STRING, \fB\-\-name\fR STRING
A base to use with setproctitle for process naming.
[None]
.TP
\fB\-\-suppress\-ragged\-eofs\fR
Suppress ragged EOFs (see stdlib ssl module's) [True]
.TP
\fB\-\-reload\fR
Restart workers when code changes. [False]
.TP
\fB\-\-access\-logfile\fR FILE
The Access log file to write to. [None]
.TP
\fB\-\-settings\fR STRING
The Python path to a Django settings module.
(deprecated) [None]
.TP
\fB\-\-forwarded\-allow\-ips\fR STRING
Front\-end's IPs from which allowed to handle set
secure headers. [127.0.0.1]
.TP
\fB\-\-error\-logfile\fR FILE, \fB\-\-log\-file\fR FILE
The Error log file to write to. [\-]
.TP
\fB\-\-log\-syslog\-prefix\fR SYSLOG_PREFIX
Makes Gunicorn use the parameter as program\-name in
the syslog entries. [None]
.TP
\fB\-\-capture\-output\fR
Redirect stdout/stderr to Error log. [False]
.TP
\fB\-\-statsd\-prefix\fR STATSD_PREFIX
Prefix to use when emitting statsd metrics (a trailing
``.`` is added, []
.TP
\fB\-w\fR INT, \fB\-\-workers\fR INT
The number of worker processes for handling requests.
[1]
.TP
\fB\-e\fR ENV, \fB\-\-env\fR ENV
Set environment variable (key=value). [[]]
.TP
\fB\-\-graceful\-timeout\fR INT
Timeout for graceful workers restart. [30]
.TP
\fB\-\-keyfile\fR FILE
SSL key file [None]
.TP
\fB\-\-no\-sendfile\fR
Disables the use of ``sendfile()``. [None]
.TP
\fB\-m\fR INT, \fB\-\-umask\fR INT
A bit mask for the file mode on files written by
Gunicorn. [0]
.TP
\fB\-\-do\-handshake\-on\-connect\fR
Whether to perform SSL handshake on socket connect
(see stdlib ssl module's) [False]
.TP
\fB\-\-spew\fR
Install a trace function that spews every line
executed by the server. [False]
.TP
\fB\-\-proxy\-protocol\fR
Enable detect PROXY protocol (PROXY mode). [False]
.TP
\fB\-\-config_dir\fR CONFIG_DIR
Config directory of your API\-Hour Daemon. Example:
/etc/hello/ [None]
.TP
\fB\-ac\fR, \fB\-\-auto_config\fR
Enable auto\-configuration discover based on daemon
name [False]
.TP
\fB\-\-max\-requests\-jitter\fR INT
The maximum jitter to add to the *max_requests*
setting. [0]
.TP
\fB\-t\fR INT, \fB\-\-timeout\fR INT
Workers silent for more than this many seconds are
killed and restarted. [30]
.TP
\fB\-c\fR CONFIG, \fB\-\-config\fR CONFIG
The Gunicorn config file. [None]
.TP
\fB\-\-paste\fR STRING, \fB\-\-paster\fR STRING
Load a PasteDeploy config file. The argument may
contain a ``#`` [None]
.TP
\fB\-\-cert\-reqs\fR CERT_REQS
Whether client certificate is required (see stdlib ssl
module's) [0]
.TP
\fB\-\-logger\-class\fR STRING
The logger you want to use to log events in Gunicorn.
[gunicorn.glogging.Logger]
.TP
\fB\-\-log\-syslog\fR
Send *Gunicorn* logs to syslog. [False]
.TP
\fB\-k\fR STRING, \fB\-\-worker\-class\fR STRING
The type of workers to use. [sync]
.TP
\fB\-\-keep\-alive\fR INT
The number of seconds to wait for requests on a KeepAlive connection. [2]
.TP
\fB\-p\fR FILE, \fB\-\-pid\fR FILE
A filename to use for the PID file. [None]
.TP
\fB\-\-ca\-certs\fR FILE
CA certificates file [None]
.TP
\fB\-\-max\-requests\fR INT
The maximum number of requests a worker will process
before restarting. [0]
.SH "SEE ALSO"
The full documentation for
.B api_hour
is available on http://www.api-hour.io