diff --git a/CHANGELOG.md b/CHANGELOG.md index 5639b5cc..b327029e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.4-1 (November 22, 2019) + +IMPROVEMENTS: + +* Add support to set upstream server parameters: `max_conns`, `max_fails`, `fail_timeout` and `slow_start` in the configuration file. https://github.com/nginxinc/nginx-asg-sync/pull/33 +* Add support to use wildcards in the names of AWS Auto Scaling groups. https://github.com/nginxinc/nginx-asg-sync/pull/29/ +* Allow nginx-asg-sync to detect the region where it is running (use `region: self` in the configuration file). https://github.com/nginxinc/nginx-asg-sync/pull/27 + ## 0.3-1 (September 4, 2019) IMPROVEMENTS: diff --git a/build/package/debian/changelog b/build/package/debian/changelog index 0f233c85..a089742d 100644 --- a/build/package/debian/changelog +++ b/build/package/debian/changelog @@ -1,3 +1,10 @@ +nginx-asg-sync (0.4-1-%%CODENAME%%) unstable; urgency=low + + * 0.4-1 + * Add support to set upstream server parameters (max_conns, max_fails, fail_timeout and slow_start) + * Add support to use wildcards in AWS autoscaling groups + * Allow to use the same AWS region as the instance where the nginx-asg-sync is running + nginx-asg-sync (0.3-1-%%CODENAME%%) unstable; urgency=low * 0.3-1 diff --git a/build/package/rpm/SPECS/nginx-asg-sync.spec b/build/package/rpm/SPECS/nginx-asg-sync.spec index 6b1e74db..70c8bec1 100644 --- a/build/package/rpm/SPECS/nginx-asg-sync.spec +++ b/build/package/rpm/SPECS/nginx-asg-sync.spec @@ -3,7 +3,7 @@ Summary: NGINX Plus Integration with Cloud Autoscaling Name: nginx-asg-sync -Version: 0.3 +Version: 0.4 Release: 1%{?dist} Vendor: Nginx Software, Inc. URL: https://github.com/nginxinc/nginx-asg-sync @@ -110,6 +110,12 @@ if [ $1 -ge 1 ]; then fi %changelog +* Fri Nov 22 2019 Raul Marrero +- 0.4-1 +- Add support to set upstream server parameters (max_conns, max_fails, fail_timeout and slow_start) +- Add support to use wildcards in AWS autoscaling groups +- Allow to use the same AWS region as the instance where the nginx-asg-sync is running + * Wed Sep 4 2019 Raul Marrero - 0.3-1 - Add support for Azure Virtual Machine Scale Sets diff --git a/cmd/sync/main.go b/cmd/sync/main.go index 67b16821..25aa50a2 100644 --- a/cmd/sync/main.go +++ b/cmd/sync/main.go @@ -17,7 +17,7 @@ import ( var configFile = flag.String("config_path", "/etc/nginx/config.yaml", "Path to the config file") var logFile = flag.String("log_path", "", "Path to the log file. If the file doesn't exist, it will be created") -var version = "0.3-1" +var version = "0.4-1" const connTimeoutInSecs = 10 diff --git a/cmd/sync/parameters.go b/cmd/sync/parameters.go index a8782bff..07900aa7 100644 --- a/cmd/sync/parameters.go +++ b/cmd/sync/parameters.go @@ -17,4 +17,4 @@ func getSlowStartOrDefault(slowStart string) string { } return slowStart -} \ No newline at end of file +} diff --git a/cmd/sync/parameters_test.go b/cmd/sync/parameters_test.go index f9d94c73..6a543e99 100644 --- a/cmd/sync/parameters_test.go +++ b/cmd/sync/parameters_test.go @@ -5,16 +5,16 @@ import ( ) func TestGetFailTimeoutOrDefault(t *testing.T) { - tests := []struct{ - input string + tests := []struct { + input string expected string }{ { - input: "", + input: "", expected: defaultFailTimeout, }, { - input: "10s", + input: "10s", expected: "10s", }, } @@ -28,16 +28,16 @@ func TestGetFailTimeoutOrDefault(t *testing.T) { } func TestGetSlowStartOrDefault(t *testing.T) { - tests := []struct{ - input string + tests := []struct { + input string expected string }{ { - input: "", + input: "", expected: defaultSlowStart, }, { - input: "10s", + input: "10s", expected: "10s", }, } @@ -48,4 +48,4 @@ func TestGetSlowStartOrDefault(t *testing.T) { t.Errorf("getSlowStartOrDefault(%v) returned %v but expected %v", test.input, result, test.expected) } } -} \ No newline at end of file +}