Google appengine yaml file, configuration instructions

Source: Internet
Author: User
Tags regex expression
This is a creation in Article, where the information may have evolved or changed.

Application:myapp # Your Google App ID

Version:1 # version

Runtime:go # Run-time language

Version of the Api_version:go1 # API


default_expiration:1d 2h 3m 4s # Optional, if the static resource does not have a expiration set, the item is used


Handlers: # Dispatcher

-URL:/stylesheets # extended POSIX regex expression, can be used \w, \w, \s, \s, \d, \d

Static_dir:stylesheets # Static Directory

MIME_TYPE:XXXX # Optional, if set, the type of response is specified

expiration:1d 2h 3m 4s # optional, indicating how long a static resource should be cached by the client


-URL:/(. *\. ( gif|png|jpg)) $

Static_files:static/\1 # URL-captured groupings are available (\1)

Upload:static/.*\. (gif|png|jpg) $ # optional, upload used to restrict static_files accessible files

Application_readable:true # Optional, when True, the script can access the file

Http_header: # optional, indicating that the header of the response can be set

Access-control-allow-origin: * # optional, set to *, all sites can access myapp.appspot.com resources

# is set to Http://mygame.appspot.com, only the station can access the resource


-URL:/.*

Script: _go_app # means that the URL is processed by the script

Secure:optional # Optional, this is the default value, both HTTP and HTTPS can successfully access the site

Never # HTTPS is redirected to the unified site under the HTTP protocol

Always # HTTP is redirected to a unified site under the HTTPS protocol

Login:optional # Optional, this is the default value, no login required

Required # requires login to access, otherwise execute auth_fail_action

Admin # must be an administrator account to access, not logged in execution auth_fail_action, return 401

Auth_fail_action:redirect # Optional, this is the default, redirected to the Google sign-in page

Unauthorized # returns 401

Error_handlers: # Optional, set error page

-File:default_error.html # Default error page


-Error_code:over_quota # Specify error code

File:over_quota.html # page with this error code

Skip_files: # indicates that files in the app directory that match the following regular expressions do not need to be uploaded

- ^(.*/)?#.*#$

- ^(.*/)?. *~$

- ^(.*/)?. *\.py[co]$

- ^(.*/)?. */rcs/.*$

- ^(.*/)?\.. *$


For additional information, please refer to the Google App Engine SDK


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.