Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
erdnaxe
nixos
Commits
6a78fec3
Commit
6a78fec3
authored
May 28, 2022
by
erdnaxe
🦋
Browse files
Always add HSTS
parent
84ea4d47
Changes
1
Hide whitespace changes
Inline
Side-by-side
base/letsencrypt.nix
View file @
6a78fec3
...
...
@@ -10,14 +10,8 @@
recommendedOptimisation
=
true
;
recommendedProxySettings
=
true
;
recommendedTlsSettings
=
true
;
commonHttpConfig
=
''
# Add HSTS header with preloading to HTTPS requests.
# Adding this header to HTTP requests is discouraged
map $scheme $hsts_header {
https "max-age=31536000; includeSubdomains; preload";
}
add_header Strict-Transport-Security $hsts_header;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload" always;
''
;
};
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment