Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
774e64d2
Commit
774e64d2
authored
Nov 22, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shrpx: Group up options in -h output
parent
9c70c1b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
43 deletions
+59
-43
src/shrpx.cc
src/shrpx.cc
+59
-43
No files found.
src/shrpx.cc
View file @
774e64d2
...
...
@@ -385,6 +385,8 @@ void print_help(std::ostream& out)
<<
" unless either -p or --client is specified.
\n
"
<<
"
\n
"
<<
"OPTIONS:
\n
"
<<
"
\n
"
<<
" Connections:
\n
"
<<
" -b, --backend=<HOST,PORT>
\n
"
<<
" Set backend host and port.
\n
"
<<
" Default: '"
...
...
@@ -394,33 +396,17 @@ void print_help(std::ostream& out)
<<
" Set frontend host and port.
\n
"
<<
" Default: '"
<<
get_config
()
->
host
<<
","
<<
get_config
()
->
port
<<
"'
\n
"
<<
" --backlog=<NUM> Set listen backlog size.
\n
"
<<
" Default: "
<<
get_config
()
->
backlog
<<
"
\n
"
<<
"
\n
"
<<
" Performance:
\n
"
<<
" -n, --workers=<CORES>
\n
"
<<
" Set the number of worker threads.
\n
"
<<
" Default: "
<<
get_config
()
->
num_worker
<<
"
\n
"
<<
" -c, --spdy-max-concurrent-streams=<NUM>
\n
"
<<
" Set the maximum number of the concurrent
\n
"
<<
" streams in one SPDY session.
\n
"
<<
" Default: "
<<
get_config
()
->
spdy_max_concurrent_streams
<<
"
\n
"
<<
" -L, --log-level=<LEVEL>
\n
"
<<
" Set the severity level of log output.
\n
"
<<
" INFO, WARNING, ERROR and FATAL.
\n
"
<<
" Default: WARNING
\n
"
<<
" -D, --daemon Run in a background. If -D is used, the
\n
"
<<
" current working directory is changed to '/'.
\n
"
<<
" -s, --spdy-proxy SSL/SPDY proxy mode.
\n
"
<<
" --client Instead of accepting SPDY/HTTPS connection,
\n
"
<<
" accept HTTP connection and communicate with
\n
"
<<
" backend server in SPDY. To use shrpx as
\n
"
<<
" a forward proxy, use -p option instead.
\n
"
<<
" -p, --client-proxy Like --client option, but it also requires
\n
"
<<
" the request path from frontend must be
\n
"
<<
" an absolute URI, suitable for use as a
\n
"
<<
" forward proxy."
<<
" --add-x-forwarded-for
\n
"
<<
" Append X-Forwarded-For header field to the
\n
"
<<
" downstream request.
\n
"
<<
"
\n
"
<<
" Timeout:
\n
"
<<
" --frontend-spdy-read-timeout=<SEC>
\n
"
<<
" Specify read timeout for SPDY frontend
\n
"
<<
" connection. Default: "
...
...
@@ -446,7 +432,26 @@ void print_help(std::ostream& out)
<<
" Specify keep-alive timeout for backend
\n
"
<<
" connection. Default: "
<<
get_config
()
->
downstream_idle_read_timeout
.
tv_sec
<<
"
\n
"
<<
" --accesslog Print simple accesslog to stderr.
\n
"
<<
"
\n
"
<<
" SSL/TLS:
\n
"
<<
" --ciphers=<SUITE> Set allowed cipher list. The format of the
\n
"
<<
" string is described in OpenSSL ciphers(1).
\n
"
<<
" -k, --insecure When used with -p or --client, don't verify
\n
"
<<
" backend server's certificate.
\n
"
<<
" --cacert=<PATH> When used with -p or --client, set path to
\n
"
<<
" trusted CA certificate file.
\n
"
<<
" The file must be in PEM format. It can
\n
"
<<
" contain multiple certificates. If the
\n
"
<<
" linked OpenSSL is configured to load system
\n
"
<<
" wide certificates, they are loaded
\n
"
<<
" at startup regardless of this option.
\n
"
<<
"
\n
"
<<
" SPDY:
\n
"
<<
" -c, --spdy-max-concurrent-streams=<NUM>
\n
"
<<
" Set the maximum number of the concurrent
\n
"
<<
" streams in one SPDY session.
\n
"
<<
" Default: "
<<
get_config
()
->
spdy_max_concurrent_streams
<<
"
\n
"
<<
" --frontend-spdy-window-bits=<N>
\n
"
<<
" Sets the initial window size of SPDY
\n
"
<<
" frontend connection to 2**<N>.
\n
"
...
...
@@ -457,31 +462,42 @@ void print_help(std::ostream& out)
<<
" backend connection to 2**<N>.
\n
"
<<
" Default: "
<<
get_config
()
->
spdy_downstream_window_bits
<<
"
\n
"
<<
" --pid-file=<PATH> Set path to save PID of this program.
\n
"
<<
" --user=<USER> Run this program as USER. This option is
\n
"
<<
" intended to be used to drop root privileges.
\n
"
<<
" --conf=<PATH> Load configuration from PATH.
\n
"
<<
" Default: "
<<
get_config
()
->
conf_path
<<
"
\n
"
<<
"
\n
"
<<
" Mode:
\n
"
<<
" -s, --spdy-proxy Enable secure SPDY proxy mode.
\n
"
<<
" --client Instead of accepting SPDY/HTTPS connection,
\n
"
<<
" accept HTTP connection and communicate with
\n
"
<<
" backend server in SPDY. To use shrpx as
\n
"
<<
" a forward proxy, use -p option instead.
\n
"
<<
" -p, --client-proxy Like --client option, but it also requires
\n
"
<<
" the request path from frontend must be
\n
"
<<
" an absolute URI, suitable for use as a
\n
"
<<
" forward proxy."
<<
"
\n
"
<<
" Logging:
\n
"
<<
" -L, --log-level=<LEVEL>
\n
"
<<
" Set the severity level of log output.
\n
"
<<
" INFO, WARNING, ERROR and FATAL.
\n
"
<<
" Default: WARNING
\n
"
<<
" --accesslog Print simple accesslog to stderr.
\n
"
<<
" --syslog Send log messages to syslog.
\n
"
<<
" --syslog-facility=<FACILITY>
\n
"
<<
" Set syslog facility.
\n
"
<<
" Default: "
<<
str_syslog_facility
(
get_config
()
->
syslog_facility
)
<<
"
\n
"
<<
" --backlog=<NUM> Set listen backlog size.
\n
"
<<
"
\n
"
<<
" Misc:
\n
"
<<
" --add-x-forwarded-for
\n
"
<<
" Append X-Forwarded-For header field to the
\n
"
<<
" downstream request.
\n
"
<<
" -D, --daemon Run in a background. If -D is used, the
\n
"
<<
" current working directory is changed to '/'.
\n
"
<<
" --pid-file=<PATH> Set path to save PID of this program.
\n
"
<<
" --user=<USER> Run this program as USER. This option is
\n
"
<<
" intended to be used to drop root privileges.
\n
"
<<
" --conf=<PATH> Load configuration from PATH.
\n
"
<<
" Default: "
<<
get_config
()
->
backlog
<<
"
\n
"
<<
" --ciphers=<SUITE> Set allowed cipher list. The format of the
\n
"
<<
" string is described in OpenSSL ciphers(1).
\n
"
<<
" -k, --insecure When used with -p or --client, don't verify
\n
"
<<
" backend server's certificate.
\n
"
<<
" --cacert=<PATH> When used with -p or --client, set path to
\n
"
<<
" trusted CA certificate file.
\n
"
<<
" The file must be in PEM format. It can
\n
"
<<
" contain multiple certificates. If the
\n
"
<<
" linked OpenSSL is configured to load system
\n
"
<<
" wide certificates, they are loaded
\n
"
<<
" at startup regardless of this option.
\n
"
<<
get_config
()
->
conf_path
<<
"
\n
"
<<
" -h, --help Print this help.
\n
"
<<
std
::
endl
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment