Releases: rochacon/elastic-nginx
Releases · rochacon/elastic-nginx
New goamz and gocheck import paths.
Added instance ID to server line
This release adds the instance ID to the server line used inside the upstream block. This makes debugging easier.
Added listen command line option
Added listen
option to specify the IP and port to listen to.
$ elastic-nginx -h
Usage of elastic-nginx:
-aws-region="us-east-1": AWS Region of choice.
-config="/etc/elastic-nginx.json": Elastic NGINX config file.
-listen="127.0.0.1:5000": Address to listen to.
-version=false: Print version and exit.
Multiples upstreams and SNS topic auto subscribe
This release includes two new features and some small fixes:
- Support for multiples upstreams thought a new config file
- Support for SNS topic auto subscribe
- Added upstream mutex to avoid races in upstream file generation
- Added more logging
The command line options changed since last stable release:
$ elastic-nginx -h
Usage of elastic-nginx:
-aws-region="us-east-1": AWS Region of choice.
-config="/etc/elastic-nginx.json": Elastic NGINX config file.
-version=false: Print version and exit.
Example config JSON
{
"TopicArn": "arn:aws:sns:autoscaling",
"AutoSubscribe": true,
"Upstreams": [
{
"AutoScalingGroupARN": "arn:aws:autoscaling:backends-0",
"ContainerFolder": "/etc/nginx/upstreams.d/backends-0",
"File": "/etc/nginx/upstreams.d/backends-0.upstreams",
"Name": "backends-0"
},
{
"AutoScalingGroupARN": "arn:aws:autoscaling:backends-1",
"ContainerFolder": "/etc/nginx/upstreams.d/backends-1",
"File": "/etc/nginx/upstreams.d/backends-1.upstreams",
"Name": "backends-1"
}
]
}
Added support for Auto Scaling Group ARN filtering
$ elastic-nginx -h
Usage of elastic-nginx:
-auto-scaling-group-arn="": Auto Scaling Group ARN to be monitored.
-aws-region="us-east-1": AWS Region of choice.
-topic-arn="": Topic ARN to be monitored.
-upstream="backends": Upstream name to be generated.
-upstream-file="/etc/nginx/upstreams.d/backends.upstreams": Name of the file that holds the upstream block.
-upstreams-path="/etc/nginx/upstreams.d/backends": Folder where will be generated servers confs.
-version=false: Print version and exit.
First!!
Usage of elastic-nginx:
-aws-region="us-east-1": AWS Region of choice.
-topic-arn="": Topic ARN to be monitored.
-upstream="backends": Upstream name to be generated.
-upstream-file="/etc/nginx/conf.d/upstreams/backends.upstreams": Name of the file that holds the upstream block.
-upstreams-path="/etc/nginx/conf.d/upstreams/backends": Folder where will be generated servers confs.