-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include http.headers; | ||
include hsts.header; | ||
include hsts_h3.headers; | ||
include conf.d/csp.header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env sh | ||
|
||
# See https://nginx.org/en/docs/http/ngx_http_v3_module.html#quic_host_key | ||
# Sets a file with the secret key used to encrypt stateless reset and address validation tokens. | ||
# By default, a random key is generated on each reload. Tokens generated with old keys are not accepted. | ||
|
||
# The default NGX_QUIC_DEFAULT_HOST_KEY_LEN is 32 bytes (ngx_event_quic.h) | ||
# Since reloads happen due to Certbot, set a static persistent host key per release. | ||
|
||
openssl rand 32 > /etc/nginx/quic_host.key |
3 changes: 2 additions & 1 deletion
3
docker/webserver/hsts.header → docker/webserver/hsts_h3.headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Do *not* add includeSubdomains before https://github.com/internetstandards/Internet.nl/issues/324 is resolved, | ||
# adding includeSubdomains without adding the wildcard SSL certificates will otherwise break the connection test. | ||
add_header 'Strict-Transport-Security' 'max-age=31536000;' always; | ||
add_header 'Strict-Transport-Security' 'max-age=31536000' always; | ||
add_header 'Alt-Svc' 'h3=":443"; ma=86400' always; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters