mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Add option to enable hsts header (#6147)
* feat: Add option to enable hsts header * Update golden files
This commit is contained in:
+17
@@ -280,6 +280,23 @@ Flags:
|
||||
"ed25519", "ecdsa", or "rsa4096".
|
||||
Consumes $CODER_SSH_KEYGEN_ALGORITHM
|
||||
(default "ed25519")
|
||||
--strict-transport-security int Controls if the
|
||||
'Strict-Transport-Security' header
|
||||
is set on all static file responses.
|
||||
This header should only be set if
|
||||
the server is accessed via HTTPS.
|
||||
This value is the MaxAge in seconds
|
||||
of the header.
|
||||
Consumes $CODER_STRICT_TRANSPORT_SECURITY
|
||||
--strict-transport-security-options strings Two optional fields can be set in
|
||||
the Strict-Transport-Security
|
||||
header; 'includeSubDomains' and
|
||||
'preload'. The
|
||||
'strict-transport-security' flag
|
||||
must be set to a non-zero value for
|
||||
these options to be used.
|
||||
Consumes
|
||||
$CODER_STRICT_TRANSPORT_SECURITY_OPTIONS
|
||||
--swagger-enable Expose the swagger endpoint via
|
||||
/swagger.
|
||||
Consumes $CODER_SWAGGER_ENABLE
|
||||
|
||||
Reference in New Issue
Block a user