mirror of https://github.com/status-im/consul.git
ui: serve /robots.txt when UI is enabled. (#5089)
* serve /robots.txt * robots.txt: disallow everything
This commit is contained in:
parent
787f3f8aa6
commit
0b4a879203
|
@ -219,6 +219,7 @@ func (s *HTTPServer) handler(enableDebug bool) http.Handler {
|
|||
uifs = &redirectFS{fs: uifs}
|
||||
}
|
||||
|
||||
mux.Handle("/robots.txt", http.FileServer(uifs))
|
||||
mux.Handle("/ui/", http.StripPrefix("/ui/", http.FileServer(uifs)))
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# http://www.robotstxt.org
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Disallow: *
|
Loading…
Reference in New Issue