mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Add a robots.txt (#2207)
This commit is contained in:
parent
f4594027fd
commit
076fdc3f8b
@ -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'))
|
||||
|
||||
|
2
homeassistant/components/frontend/www_static/robots.txt
Normal file
2
homeassistant/components/frontend/www_static/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
Loading…
x
Reference in New Issue
Block a user