Skip to content

Commit a70a7ef

Browse files
authored
feat: add the server option (#3940)
1 parent ab417d1 commit a70a7ef

22 files changed

+4639
-135
lines changed

README.md

+51-14
Original file line numberDiff line numberDiff line change
@@ -122,21 +122,35 @@ Options:
122122
--no-http2 Does not serve over HTTP/2 using SPDY.
123123
--https Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP).
124124
--no-https Disallows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP).
125-
--https-passphrase <value> Passphrase for a pfx file.
126-
--https-request-cert Request for an SSL certificate.
127-
--no-https-request-cert Does not request for an SSL certificate.
128-
--https-ca <value...> Path to an SSL CA certificate or content of an SSL CA certificate.
129-
--https-ca-reset Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.
130-
--https-cacert <value...> Path to an SSL CA certificate or content of an SSL CA certificate.
131-
--https-cacert-reset Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.
132-
--https-key <value...> Path to an SSL key or content of an SSL key.
133-
--https-key-reset Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key.
134-
--https-pfx <value...> Path to an SSL pfx file or content of an SSL pfx file.
125+
--https-passphrase <value> Passphrase for a pfx file. Deprecated, it will be removed in favor of the `server.options.passphrase` option.
126+
--https-request-cert Request for an SSL certificate. Deprecated, it will be removed in favor of the `server.options.requestCert`
127+
option.
128+
--no-https-request-cert Negative 'https-request-cert' option.
129+
--https-ca <value...> Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the
130+
`server.options.ca` option.
131+
--https-ca-reset Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA
132+
certificate. Deprecated, it will be removed in favor of the `server.options.ca` option.
133+
--https-cacert <value...> Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the
134+
`server.options.cacert` option.
135+
--https-cacert-reset Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA
136+
certificate. Deprecated, it will be removed in favor of the `server.options.cacert` option.
137+
--https-cert <value...> Path to an SSL certificate or content of an SSL certificate. Deprecated, it will be removed in favor of the
138+
`server.options.cert` option.
139+
--https-cert-reset Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL
140+
certificate. Deprecated, it will be removed in favor of the `server.options.cert` option.
141+
--https-crl <value...> Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate
142+
Revocation Lists). Deprecated, it will be removed in favor of the `server.options.crl` option.
143+
--https-crl-reset Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists)
144+
or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, it will be removed in favor of the
145+
`server.options.crl` option.
146+
--https-key <value...> Path to an SSL key or content of an SSL key. Deprecated, it will be removed in favor of the `server.options.key`
147+
option.
148+
--https-key-reset Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated,
149+
it will be removed in favor of the `server.options.key` option.
150+
--https-pfx <value...> Path to an SSL pfx file or content of an SSL pfx file. Deprecated, it will be removed in favor of the
151+
`server.options.pfx` option.
135152
--https-pfx-reset Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file.
136-
--https-cert <value...> Path to an SSL certificate or content of an SSL certificate.
137-
--https-cert-reset Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate.
138-
--https-crl <value...> Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).
139-
--https-crl-reset Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).
153+
Deprecated, it will be removed in favor of the `server.options.pfx` option.
140154
--ipc [value] Listen to a unix socket.
141155
--live-reload Enables reload/refresh the page(s) when file changes are detected (enabled by default).
142156
--no-live-reload Disables reload/refresh the page(s) when file changes are detected (enabled by default)
@@ -151,6 +165,29 @@ Options:
151165
--open-target-reset Clear all items provided in 'open.target' configuration. Opens specified page in browser.
152166
--open-app-name-reset Clear all items provided in 'open.app.name' configuration. Open specified browser.
153167
--port <value> Allows to specify a port to use.
168+
--server-type <value> Allows to set server and options (by default 'http').
169+
--server-options-passphrase <value> Passphrase for a pfx file.
170+
--server-options-request-cert Request for an SSL certificate.
171+
--no-server-options-request-cert Negative 'server-options-request-cert' option.
172+
--server-options-ca <value...> Path to an SSL CA certificate or content of an SSL CA certificate.
173+
--server-options-ca-reset Clear all items provided in 'server.options.ca' configuration. Path to an SSL CA certificate or content
174+
of an SSL CA certificate.
175+
--server-options-cacert <value...> Path to an SSL CA certificate or content of an SSL CA certificate.
176+
--server-options-cacert-reset Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or
177+
content of an SSL CA certificate.
178+
--server-options-cert <value...> Path to an SSL certificate or content of an SSL certificate.
179+
--server-options-cert-reset Clear all items provided in 'server.options.cert' configuration. Path to an SSL certificate or content
180+
of an SSL certificate.
181+
--server-options-crl <value...> Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate
182+
Revocation Lists).
183+
--server-options-crl-reset Clear all items provided in 'server.options.crl' configuration. Path to PEM formatted CRLs (Certificate
184+
Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).
185+
--server-options-key <value...> Path to an SSL key or content of an SSL key.
186+
--server-options-key-reset Clear all items provided in 'server.options.key' configuration. Path to an SSL key or content of an SSL
187+
key.
188+
--server-options-pfx <value...> Path to an SSL pfx file or content of an SSL pfx file.
189+
--server-options-pfx-reset Clear all items provided in 'server.options.pfx' configuration. Path to an SSL pfx file or content of
190+
an SSL pfx file.
154191
--static [value...] Allows to configure options for serving static files from directory (by default 'public' directory).
155192
--no-static Negative 'static' option.
156193
--static-directory <value...> Directory for static contents.

0 commit comments

Comments
 (0)