Add a robots.txt (#2207)

This commit is contained in:
Alex Harvey 2016-06-05 15:48:59 -07:00 committed by Josh Wright
parent f4594027fd
commit 076fdc3f8b
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,10 @@ def setup(hass, config):
os.path.join(www_static_path, sw_path),
0
)
hass.wsgi.register_static_path(
"/robots.txt",
os.path.join(www_static_path, "robots.txt")
)
hass.wsgi.register_static_path("/static", www_static_path)
hass.wsgi.register_static_path("/local", hass.config.path('www'))

View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /