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
564e6b9f
Commit
564e6b9f
authored
Aug 03, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Rename --{front,back}end-spdy-no-tls as --{front,back}end-no-tls
parent
f620655d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
18 deletions
+14
-18
src/shrpx.cc
src/shrpx.cc
+8
-12
src/shrpx_config.cc
src/shrpx_config.cc
+4
-4
src/shrpx_config.h
src/shrpx_config.h
+2
-2
No files found.
src/shrpx.cc
View file @
564e6b9f
...
@@ -537,17 +537,13 @@ void print_help(std::ostream& out)
...
@@ -537,17 +537,13 @@ void print_help(std::ostream& out)
<<
" frontend connection to 2**<N>.
\n
"
<<
" frontend connection to 2**<N>.
\n
"
<<
" Default: "
<<
" Default: "
<<
get_config
()
->
spdy_upstream_window_bits
<<
"
\n
"
<<
get_config
()
->
spdy_upstream_window_bits
<<
"
\n
"
<<
" --frontend-spdy-no-tls
\n
"
<<
" --frontend-no-tls Disable SSL/TLS on frontend connections.
\n
"
<<
" Disable SSL/TLS on frontend HTTP/2.0
\n
"
<<
" connections.This option also disables
\n
"
<<
" frontend SPDY and HTTP/1.1.
\n
"
<<
" --backend-spdy-window-bits=<N>
\n
"
<<
" --backend-spdy-window-bits=<N>
\n
"
<<
" Sets the initial window size of HTTP/2.0 and SPDY
\n
"
<<
" Sets the initial window size of HTTP/2.0 and SPDY
\n
"
<<
" backend connection to 2**<N>.
\n
"
<<
" backend connection to 2**<N>.
\n
"
<<
" Default: "
<<
" Default: "
<<
get_config
()
->
spdy_downstream_window_bits
<<
"
\n
"
<<
get_config
()
->
spdy_downstream_window_bits
<<
"
\n
"
<<
" --backend-spdy-no-tls
\n
"
<<
" --backend-no-tls Disable SSL/TLS on backend connections.
\n
"
<<
" Disable SSL/TLS on backend HTTP/2.0 connections.
\n
"
<<
"
\n
"
<<
"
\n
"
<<
" Mode:
\n
"
<<
" Mode:
\n
"
<<
" -s, --spdy-proxy Enable secure HTTP/2.0 and SPDY proxy mode.
\n
"
<<
" -s, --spdy-proxy Enable secure HTTP/2.0 and SPDY proxy mode.
\n
"
...
@@ -646,8 +642,8 @@ int main(int argc, char **argv)
...
@@ -646,8 +642,8 @@ int main(int argc, char **argv)
{
"subcert"
,
required_argument
,
&
flag
,
24
},
{
"subcert"
,
required_argument
,
&
flag
,
24
},
{
"spdy-bridge"
,
no_argument
,
&
flag
,
25
},
{
"spdy-bridge"
,
no_argument
,
&
flag
,
25
},
{
"backend-http-proxy-uri"
,
required_argument
,
&
flag
,
26
},
{
"backend-http-proxy-uri"
,
required_argument
,
&
flag
,
26
},
{
"backend-
spdy-
no-tls"
,
no_argument
,
&
flag
,
27
},
{
"backend-no-tls"
,
no_argument
,
&
flag
,
27
},
{
"frontend-
spdy-
no-tls"
,
no_argument
,
&
flag
,
29
},
{
"frontend-no-tls"
,
no_argument
,
&
flag
,
29
},
{
"backend-tls-sni-field"
,
required_argument
,
&
flag
,
31
},
{
"backend-tls-sni-field"
,
required_argument
,
&
flag
,
31
},
{
"honor-cipher-order"
,
no_argument
,
&
flag
,
32
},
{
"honor-cipher-order"
,
no_argument
,
&
flag
,
32
},
{
0
,
0
,
0
,
0
}
{
0
,
0
,
0
,
0
}
...
@@ -810,13 +806,13 @@ int main(int argc, char **argv)
...
@@ -810,13 +806,13 @@ int main(int argc, char **argv)
optarg
));
optarg
));
break
;
break
;
case
27
:
case
27
:
// --backend-
spdy-
no-tls
// --backend-no-tls
cmdcfgs
.
push_back
(
std
::
make_pair
(
SHRPX_OPT_BACKEND_
SPDY_
NO_TLS
,
cmdcfgs
.
push_back
(
std
::
make_pair
(
SHRPX_OPT_BACKEND_NO_TLS
,
"yes"
));
"yes"
));
break
;
break
;
case
29
:
case
29
:
// --frontend-
spdy-
no-tls
// --frontend-no-tls
cmdcfgs
.
push_back
(
std
::
make_pair
(
SHRPX_OPT_FRONTEND_
SPDY_
NO_TLS
,
cmdcfgs
.
push_back
(
std
::
make_pair
(
SHRPX_OPT_FRONTEND_NO_TLS
,
"yes"
));
"yes"
));
break
;
break
;
case
31
:
case
31
:
...
...
src/shrpx_config.cc
View file @
564e6b9f
...
@@ -75,8 +75,8 @@ const char
...
@@ -75,8 +75,8 @@ const char
SHRPX_OPT_BACKEND_KEEP_ALIVE_TIMEOUT
[]
=
"backend-keep-alive-timeout"
;
SHRPX_OPT_BACKEND_KEEP_ALIVE_TIMEOUT
[]
=
"backend-keep-alive-timeout"
;
const
char
SHRPX_OPT_FRONTEND_SPDY_WINDOW_BITS
[]
=
"frontend-spdy-window-bits"
;
const
char
SHRPX_OPT_FRONTEND_SPDY_WINDOW_BITS
[]
=
"frontend-spdy-window-bits"
;
const
char
SHRPX_OPT_BACKEND_SPDY_WINDOW_BITS
[]
=
"backend-spdy-window-bits"
;
const
char
SHRPX_OPT_BACKEND_SPDY_WINDOW_BITS
[]
=
"backend-spdy-window-bits"
;
const
char
SHRPX_OPT_FRONTEND_
SPDY_NO_TLS
[]
=
"frontend-spdy
-no-tls"
;
const
char
SHRPX_OPT_FRONTEND_
NO_TLS
[]
=
"frontend
-no-tls"
;
const
char
SHRPX_OPT_BACKEND_
SPDY_NO_TLS
[]
=
"backend-spdy
-no-tls"
;
const
char
SHRPX_OPT_BACKEND_
NO_TLS
[]
=
"backend
-no-tls"
;
const
char
SHRPX_OPT_BACKEND_TLS_SNI_FIELD
[]
=
"backend-tls-sni-field"
;
const
char
SHRPX_OPT_BACKEND_TLS_SNI_FIELD
[]
=
"backend-tls-sni-field"
;
const
char
SHRPX_OPT_PID_FILE
[]
=
"pid-file"
;
const
char
SHRPX_OPT_PID_FILE
[]
=
"pid-file"
;
const
char
SHRPX_OPT_USER
[]
=
"user"
;
const
char
SHRPX_OPT_USER
[]
=
"user"
;
...
@@ -265,9 +265,9 @@ int parse_config(const char *opt, const char *optarg)
...
@@ -265,9 +265,9 @@ int parse_config(const char *opt, const char *optarg)
<<
" specify the integer in the range [0, 30], inclusive"
;
<<
" specify the integer in the range [0, 30], inclusive"
;
return
-
1
;
return
-
1
;
}
}
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_FRONTEND_
SPDY_
NO_TLS
))
{
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_FRONTEND_NO_TLS
))
{
mod_config
()
->
spdy_upstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
mod_config
()
->
spdy_upstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_BACKEND_
SPDY_
NO_TLS
))
{
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_BACKEND_NO_TLS
))
{
mod_config
()
->
spdy_downstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
mod_config
()
->
spdy_downstream_no_tls
=
util
::
strieq
(
optarg
,
"yes"
);
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_BACKEND_TLS_SNI_FIELD
))
{
}
else
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_BACKEND_TLS_SNI_FIELD
))
{
set_config_str
(
&
mod_config
()
->
backend_tls_sni_name
,
optarg
);
set_config_str
(
&
mod_config
()
->
backend_tls_sni_name
,
optarg
);
...
...
src/shrpx_config.h
View file @
564e6b9f
...
@@ -68,8 +68,8 @@ extern const char SHRPX_OPT_ACCESSLOG[];
...
@@ -68,8 +68,8 @@ extern const char SHRPX_OPT_ACCESSLOG[];
extern
const
char
SHRPX_OPT_BACKEND_KEEP_ALIVE_TIMEOUT
[];
extern
const
char
SHRPX_OPT_BACKEND_KEEP_ALIVE_TIMEOUT
[];
extern
const
char
SHRPX_OPT_FRONTEND_SPDY_WINDOW_BITS
[];
extern
const
char
SHRPX_OPT_FRONTEND_SPDY_WINDOW_BITS
[];
extern
const
char
SHRPX_OPT_BACKEND_SPDY_WINDOW_BITS
[];
extern
const
char
SHRPX_OPT_BACKEND_SPDY_WINDOW_BITS
[];
extern
const
char
SHRPX_OPT_FRONTEND_
SPDY_
NO_TLS
[];
extern
const
char
SHRPX_OPT_FRONTEND_NO_TLS
[];
extern
const
char
SHRPX_OPT_BACKEND_
SPDY_
NO_TLS
[];
extern
const
char
SHRPX_OPT_BACKEND_NO_TLS
[];
extern
const
char
SHRPX_OPT_PID_FILE
[];
extern
const
char
SHRPX_OPT_PID_FILE
[];
extern
const
char
SHRPX_OPT_USER
[];
extern
const
char
SHRPX_OPT_USER
[];
extern
const
char
SHRPX_OPT_SYSLOG
[];
extern
const
char
SHRPX_OPT_SYSLOG
[];
...
...
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