gae - app.yaml
application: hoang-php1
version: 1
runtime: php
api_version: 1 # php only 1
threadsafe: true
service: service_name
env_variables:
MY_VAR: 'my value'
# cache period for all static file
default_expiration: "4d 5h"
runtime_config:
document_root: web
handlers:
# Serve images as static resources.
- url: /(.+\.(gif|png|jpg))$
static_files: \1
upload: .+\.(gif|png|jpg)$
application_readable: true
- url: .*
script: main.php
# Serve php scripts.
- url: /(.+\.php)$
script: \1
# can restrict the script handler to root-level scripts
- url: /([^/]+\.php)
# custom error pages
error_handlers:
- file: default_error.html
- error_code: over_quota
file: over_quota.html
# specifies which files in the application directory are not to be uploaded to App Engine
skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$
instance_class: F2
automatic_scaling:
min_idle_instances: 5
# maximum number of idle instances that App Engine should maintain for this version
max_idle_instances: automatic # default value
# maximum amount of time that App Engine should allow a request to wait in pending queue
# before starting a new instance to handle it
min_pending_latency: 30ms # default value
max_pending_latency: automatic
# sets the number of instances for a service
basic_scaling:
max_instances: 11
idle_timeout: 10m