Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ilyaigpetrov/ac7fdfe71e8eebb2f29ae587bd4faeae to your computer and use it in GitHub Desktop.
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

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.

$ 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment