Hosting Simple Static Site on Appengine Standard for Free
This set of files is all you need to host a static web site on Google Appengine Standard for free.
This set of files is all you need to host a static web site on Google Appengine Standard for free.
$ tree | |
. | |
├── app.yaml | |
└── static | |
├── index.html | |
├── robots.txt | |
└── sitemap.xml | |
1 directory, 4 files |
runtime: nodejs10 | |
handlers: | |
- url: (/.*)?/ | |
static_files: static\1/index.html | |
upload: static/(?:.+/)?index\.html | |
secure: always | |
redirect_http_response_code: 301 | |
- url: /(.*)? | |
static_files: static/\1 | |
upload: static/.* | |
secure: always | |
redirect_http_response_code: 301 |
# Block pro-Kremlin search engines | |
# Mail.ru user agent: http://robotstxt.org.ru/rurobots/mail-ru | |
User-agent: Mail.Ru | |
Disallow: / | |
# Block Baidu Chinese search engine | |
# List of Baidu user agents: http://www.baiduguide.com/baidu-spider/ | |
# Please, keep records separated, more info: https://audisto.com/insights/guides/4/ | |
User-agent: Baiduspider | |
Disallow: / | |
User-agent: Baiduspider-image | |
Disallow: / | |
User-agent: Baiduspider-mobile | |
Disallow: / | |
User-agent: Baiduspider-video | |
Disallow: / | |
User-agent: Baiduspider-news | |
Disallow: / | |
User-agent: Baiduspider-favo | |
Disallow: / | |
User-agent: Baiduspider-cpro | |
Disallow: / | |
User-agent: Baiduspider-ads | |
Disallow: / |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset | |
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 | |
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" | |
> | |
<url> | |
<loc>https://your-site.com/</loc> | |
</url> | |
</urlset> |