mirror of
https://github.com/searxng/searxng-docker.git
synced 2025-12-23 04:00:02 +00:00
[enh] add HSTS header (#419)
This commit is contained in:
committed by
GitHub
parent
649d7509c9
commit
d9357aca09
@@ -66,6 +66,11 @@ header {
|
|||||||
# Comment header to allow indexing by search engines
|
# Comment header to allow indexing by search engines
|
||||||
X-Robots-Tag "noindex, nofollow, noarchive, nositelinkssearchbox, nosnippet, notranslate, noimageindex"
|
X-Robots-Tag "noindex, nofollow, noarchive, nositelinkssearchbox, nosnippet, notranslate, noimageindex"
|
||||||
|
|
||||||
|
# enable HSTS
|
||||||
|
# WARNING: Once this value is set, the site must continue to support HTTPS until the expiry time is reached.
|
||||||
|
|
||||||
|
# Strict-Transport-Security max-age=15768000;
|
||||||
|
|
||||||
# Remove "Server" header
|
# Remove "Server" header
|
||||||
-Server
|
-Server
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user