Created
December 21, 2021 06:17
-
-
Save h1z3y3/5cf1e468cc6b0813a83eccecd1597a40 to your computer and use it in GitHub Desktop.
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
server { | |
listen 80; | |
server_name .example.com | |
return 301 https://example.com | |
} | |
server { | |
listen 443 ssl; | |
server_name .example.com | |
# other ssl configrations | |
ssl_... | |
# HSTS | |
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment