Skip to content

Commit

Permalink
Release 0.1-2
Browse files Browse the repository at this point in the history
- Make sure nginx-asg-sync works with NGINX Plus R13
  • Loading branch information
pleshakov committed Aug 30, 2017
1 parent 37c6c34 commit 6b36bfc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

var configFile = flag.String("config_path", "/etc/nginx/aws.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.1-1"
var version = "0.1-2"

const connTimeoutInSecs = 10

Expand Down
4 changes: 2 additions & 2 deletions cmd/sync/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ func checkIfUpstreamConfIsAccessible(httpClient *http.Client, endpoint string) e
return fmt.Errorf("upstream_conf endpoint %v is not accessible: %v", endpoint, err)
}

if resp.StatusCode != http.StatusNotFound {
return fmt.Errorf("upstream_conf endpoint %v is not accessible: expected 404 response, got %v", endpoint, resp.StatusCode)
if resp.StatusCode != http.StatusNotFound && resp.StatusCode != http.StatusBadRequest {
return fmt.Errorf("upstream_conf endpoint %v is not accessible: expected 404 or 400 response, got %v", endpoint, resp.StatusCode)
}

bodyStr := string(body)
Expand Down
7 changes: 7 additions & 0 deletions os-packages/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
nginx-asg-sync (0.1-2-%%CODENAME%%) unstable; urgency=low

* 0.1-2
* Make sure nginx-asg-sync works with NGINX Plus R13

-- Michael Pleshakov <[email protected]> Wed, 30 Aug 2017 21:03:28 +0000

nginx-asg-sync (0.1-1-%%CODENAME%%) unstable; urgency=low

* 0.1-1
Expand Down
6 changes: 5 additions & 1 deletion os-packages/rpm/SPECS/nginx-asg-sync.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Summary: NGINX Plus integration with AWS Auto Scaling groups
Name: nginx-asg-sync
Version: 0.1
Release: 1%{?dist}
Release: 2%{?dist}
Vendor: Nginx Software, Inc.
URL: https://github.com/nginxinc/nginx-asg-sync
Packager: Nginx Software, Inc. <https://www.nginx.com>
Expand Down Expand Up @@ -110,6 +110,10 @@ if [ $1 -ge 1 ]; then
fi

%changelog
* Wed Aug 30 2017 Michael Pleshakov <[email protected]>
- 0.1-2
- Make sure nginx-asg-sync works with NGINX Plus R13

* Fri Mar 03 2017 Michael Pleshakov <[email protected]>
- 0.1-1
- First release

0 comments on commit 6b36bfc

Please sign in to comment.