Add the X-Robots-Tag to the response header

Signed-off-by: hunhejj <hunhejj@gmail.com>
This commit is contained in:
hunhejj 2023-01-12 21:00:55 +01:00 committed by GitHub
parent afb231bc9a
commit a914a29c26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,7 +383,8 @@ Of course you need to modify `<your-nc-domain>` to the domain on which you want
[http.middlewares.nc-middlewares-secure-headers.headers]
hostsProxyHeaders = ["X-Forwarded-Host"]
referrerPolicy = "same-origin"
X-Robots-Tag = "none"
[http.middlewares.nc-middlewares-secure-headers.headers.customResponseHeaders]
X-Robots-Tag = "none"
[http.middlewares.https-redirect.redirectscheme]
scheme = "https"