diff --git a/agent/http.go b/agent/http.go index 73e9925a2c..40344d307c 100644 --- a/agent/http.go +++ b/agent/http.go @@ -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))) } diff --git a/ui-v2/public/robots.txt b/ui-v2/public/robots.txt index f5916452e5..4542354a8c 100644 --- a/ui-v2/public/robots.txt +++ b/ui-v2/public/robots.txt @@ -1,3 +1,3 @@ # http://www.robotstxt.org User-agent: * -Disallow: +Disallow: * \ No newline at end of file