This set of files is all you need to host a static web site on Google Appengine Standard for free.
Last active
January 26, 2020 14:54
-
-
Save ilyaigpetrov/ac7fdfe71e8eebb2f29ae587bd4faeae to your computer and use it in GitHub Desktop.
Hosting Simple Static Site on Appengine Standard for Free | by https://git.io/ilyaigpetrov
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── app.yaml | |
└── static | |
├── index.html | |
├── robots.txt | |
└── sitemap.xml | |
1 directory, 4 files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment