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