mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-08 09:04:29 +05:00
refactor: added `robots.txt` to disallow indexing
This commit is contained in:
@@ -48,6 +48,10 @@ let paths = {
|
||||
{
|
||||
src: 'src_data/images/*.*',
|
||||
dest: 'data/static/images/'
|
||||
},
|
||||
{
|
||||
src: 'src_data/*.txt',
|
||||
dest: 'data/static/'
|
||||
}
|
||||
],
|
||||
pages: {
|
||||
|
||||
@@ -859,6 +859,7 @@ protected:
|
||||
}
|
||||
});
|
||||
|
||||
this->webServer->serveStatic("/robots.txt", LittleFS, "/static/robots.txt", PORTAL_CACHE);
|
||||
this->webServer->serveStatic("/favicon.ico", LittleFS, "/static/images/favicon.ico", PORTAL_CACHE);
|
||||
this->webServer->serveStatic("/static", LittleFS, "/static", PORTAL_CACHE);
|
||||
}
|
||||
|
||||
2
src_data/robots.txt
Normal file
2
src_data/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
Reference in New Issue
Block a user