mirror of
https://github.com/mattermost/docker.git
synced 2024-10-18 02:35:54 +00:00
[default.conf] Use X-Robots-Tag, not robots.txt
This commit is contained in:
parent
7dbb4b372f
commit
12d9f5e739
@ -85,10 +85,7 @@ server {
|
||||
}
|
||||
|
||||
# disable Google bots from indexing this site
|
||||
location = /robots.txt {
|
||||
add_header Content-Type text/plain;
|
||||
return 200 "User-agent: *\nDisallow: /\n";
|
||||
}
|
||||
add_header X-Robots-Tag "noindex";
|
||||
|
||||
location ~ /api/v[0-9]+/(users/)?websocket$ {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
Loading…
Reference in New Issue
Block a user