Add HSTS header.

This commit is contained in:
inference 2023-03-23 01:22:46 +00:00
parent a2a911aaf9
commit e9940ae9cb
Signed by: inference
SSH Key Fingerprint: SHA256:9Pl0nZ2UJacgm+IeEtLSZ4FOESgP1eKCtRflfPfdX9M

View File

@ -4,7 +4,7 @@
# Copyright 2022-2023 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Version: 1.0.0.2
# Version: 2.0.0.3
# Server (unencrypted)
@ -35,6 +35,7 @@ server {
ssl_conf_command Ciphersuites "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256";
ssl_conf_command Options PrioritizeChaCha;
ssl_prefer_server_ciphers on;
add_header Strict-Transport-Security "max-age=126200000; includeSubDomains; preload";
# Location
location / {