Skip to content

Releases: rochacon/elastic-nginx

New goamz and gocheck import paths.

12 Feb 04:52
Compare
Choose a tag to compare

This release includes the move of goamz and gocheck to gopkg.in import paths.

Added instance ID to server line

06 Jan 18:16
Compare
Choose a tag to compare

This release adds the instance ID to the server line used inside the upstream block. This makes debugging easier.

Added listen command line option

06 Jan 18:13
Compare
Choose a tag to compare

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

12 Dec 18:42
Compare
Choose a tag to compare

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

14 Sep 02:18
Compare
Choose a tag to compare
$ 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!!

28 Aug 05:26
Compare
Choose a tag to compare
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.