添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Proxy configuration for static files aws:elasticbeanstalk:environment:proxy:staticfiles

AWS X-Ray support aws:elasticbeanstalk:xray

In Amazon Linux 2 platform versions, Elastic Beanstalk implements these features in a consistent way across all supporting platforms. The related namespace are now listed in the General options for all environments page. We only kept mention of them on this page for platforms who had differently-named namespaces.

Docker platform options

The following Docker-specific configuration options apply to the Docker and Preconfigured Docker platforms.

Note

These configuration options do not apply to

  • the Docker platform (Amazon Linux 2) with Docker Compose

  • the Multicontainer Docker platform (Amazon Linux AMI)

Description Default Valid values

Amazon Linux AMI (pre-Amazon Linux 2) platform options

You can use the following namespace to configure the proxy server to serve static files. When the proxy server receives a request for a file under the specified path, it serves the file directly instead of routing the request to your application. This reduces the number of requests that your application has to process.

Map a path served by the proxy server to a folder in your source code that contains static assets. Each option that you define in this namespace maps a different path.

Namespace: aws:elasticbeanstalk:environment:proxy
Value

Path where the proxy server will serve the files.

Example: /images to serve files at subdomain .eleasticbeanstalk.com/images .

Name of the folder containing the files.

Example: staticimages to serve files from a folder named staticimages at the top level of your source bundle.

Amazon Linux AMI (pre-Amazon Linux 2) platform options

You can use the following namespace to configure the proxy server to serve static files. When the proxy server receives a request for a file under the specified path, it serves the file directly instead of routing the request to your application. This reduces the number of requests that your application has to process.

Map a path served by the proxy server to a folder in your source code that contains static assets. Each option that you define in this namespace maps a different path.

Value

Path where the proxy server will serve the files.

Example: /images to serve files at subdomain .eleasticbeanstalk.com/images .

Name of the folder containing the files.

Example: staticimages to serve files from a folder named staticimages at the top level of your source bundle.

See Environment properties and other software settings for more information.

Description Default Valid values

Section of the JVM heap that is used to store class definitions and associated metadata.

Note

This option only applies to Java versions earlier than Java 8, and isn't supported on Elastic Beanstalk Tomcat platforms based on Amazon Linux 2 and later.

Set to false to disable response compression.

Only valid on Amazon Linux AMI (preceding Amazon Linux 2) platform versions.

false

Set the proxy to use on your environment's instances. If you set this option to apache , Elastic Beanstalk uses Apache 2.4 .

Set to apache/2.2 if your application isn't ready to migrate away from Apache 2.2 due to incompatible proxy configuration settings. This value is only valid on Amazon Linux AMI (preceding Amazon Linux 2) platform versions.

Set to nginx to use nginx . This is the default starting with Amazon Linux 2 platform versions.

For more information, see Configuring your Tomcat environment's proxy server .

nginx (Amazon Linux 2)

apache (Amazon Linux AMI)

apache

apache/2.2 Amazon Linux AMI only

nginx

Command used to start the Node.js application. If an empty string is specified, app.js is used, then server.js , then npm start in that order.

Version of Node.js. For example, 4.4.6

Supported Node.js versions vary between Node.js platform versions. See Node.js in the AWS Elastic Beanstalk Platforms document for a list of the currently supported versions.

Note

When support for the version of Node.js that you are using is removed from the platform, you must change or remove the version setting prior to doing a platform update . This might occur when a security vulnerability is identified for one or more versions of Node.js.

When this happens, attempting to update to a new version of the platform that doesn't support the configured NodeVersion fails. To avoid needing to create a new environment, change the NodeVersion configuration option to a Node.js version that is supported by both the old platform version and the new one, or remove the option setting , and then perform the platform update.

GzipCompression

Specifies if gzip compression is enabled. If ProxyServer is set to none , then gzip compression is disabled.

false

false

Specifies which web server should be used to proxy connections to Node.js. If ProxyServer is set to none , then static file mappings doesn't take effect and gzip compression is disabled.

nginx

apache

nginx

Namespace: aws:elasticbeanstalk:container:tomcat:jvmoptions
varies varies

You can use the following namespace to configure the proxy server to serve static files. When the proxy server receives a request for a file under the specified path, it serves the file directly instead of routing the request to your application. This reduces the number of requests that your application has to process.

Map a path served by the proxy server to a folder in your source code that contains static assets. Each option that you define in this namespace maps a different path.

Note

Static file settings do not apply if aws:elasticbeanstalk:container:nodejs::ProxyFiles is set to none .

Value

Path where the proxy server will serve the files.

Example: /images to serve files at subdomain .eleasticbeanstalk.com/images .

Name of the folder containing the files.

Example: staticimages to serve files from a folder named staticimages at the top level of your source bundle.

Specify the child directory of your project that is treated as the public-facing web root.

A blank string is treated as / , or specify a string starting with /

Specifies if PHP's file functions are allowed to retrieve data from remote locations, such as websites or FTP servers.

false

Sets the maximum time, in seconds, a script is allowed to run before it is terminated by the environment.

0 to 9223372036854775807 (PHP_INT_MAX)

Sets custom options to use when installing dependencies using Composer through composer.phar install. For more information including available options, go to http://getcomposer.org/doc/03-cli.md#install .

Description Default Valid values
Note

For more information about the PHP platform, see Using the Elastic Beanstalk PHP platform .

Python platform options

Namespace: aws:elasticbeanstalk:environment:proxy
Description Default Valid values

See Environment properties and other software settings for more information.

Namespace: aws:elasticbeanstalk:application:environment
Description Default Valid values

The file that contains the WSGI application. This file must have an application callable.

On Amazon Linux 2 Python platform versions: application

On Amazon Linux AMI Python platform versions: application.py

The number of daemon processes that should be started for the process group when running WSGI applications.

The number of threads to be created to handle requests in each daemon process within the process group when running WSGI applications.

Namespace: aws:elasticbeanstalk:container:python
Description Default Valid values

Amazon Linux AMI (pre-Amazon Linux 2) platform options

You can use the following namespace to configure the proxy server to serve static files. When the proxy server receives a request for a file under the specified path, it serves the file directly instead of routing the request to your application. This reduces the number of requests that your application has to process.

Map a path served by the proxy server to a folder in your source code that contains static assets. Each option that you define in this namespace maps a different path.

By default, the proxy server in a Python environment serves any files in a folder named static at the /static path.

Namespace: aws:elasticbeanstalk:environment:proxy
Value

Path where the proxy server will serve the files.

Example: /images to serve files at subdomain .eleasticbeanstalk.com/images .

Name of the folder containing the files.

Example: staticimages to serve files from a folder named staticimages at the top level of your source bundle.

Specifies whether to run `rake db:migrate` on behalf of the users' applications; or whether it should be skipped. This is only applicable to Rails 3 applications.

false

false

Specifies whether the container should run `rake assets:precompile` on behalf of the users' applications; or whether it should be skipped. This is also only applicable to Rails 3 applications.

false

false

A colon ( : ) separated list of groups to ignore when installing dependencies from a Gemfile.

test:development

Specifies what environment stage an application can be run in. Examples of common environments include development, production, test.

production

Namespace: aws:elasticbeanstalk:container:python:staticfiles