Skip to content

feat: Add option to enable hsts header #6147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update golden files
  • Loading branch information
Emyrk committed Feb 10, 2023
commit c3c822c669f953632028c203e4487953801dcf3f
17 changes: 17 additions & 0 deletions cli/testdata/coder_server_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down