mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Add a robots.txt (#2207)
This commit is contained in:
@@ -25,6 +25,10 @@ def setup(hass, config):
|
|||||||
os.path.join(www_static_path, sw_path),
|
os.path.join(www_static_path, sw_path),
|
||||||
0
|
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("/static", www_static_path)
|
||||||
hass.wsgi.register_static_path("/local", hass.config.path('www'))
|
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: /
|
Reference in New Issue
Block a user