Skip to content

Add config for homebrew #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,4 @@ jobs:
GOPATH: ${{ steps.go.outputs.go_path }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_COMMUNITY }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
NGINX_GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}
13 changes: 13 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,16 @@ snapcrafts:
command: nginx-asg-sync
plugs: ["network", "network-bind"]
disable: "{{ if .IsSnapshot }}true{{ end }}"

brews:
- repository:
owner: nginxinc
name: homebrew-tap
token: "{{ .Env.NGINX_GITHUB_TOKEN }}"
directory: Formula
homepage: https://github.com/nginxinc/nginx-asg-sync
description: NGINX Plus Integration with Cloud Autoscaling
license: "BSD 2-Clause"
commit_author:
name: nginx-bot
email: [email protected]
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ the terminated ones.
- [Installation](#installation)
- [Manual Installation](#manual-installation)
- [Snap Installation](#snap-installation)
- [NGINX Plus Configuration](#nginx-plus-configuration)
- [Configuration for Cloud Providers](#configuration-for-cloud-providers)
- [Homebrew Installation](#homebrew-installation)
- [NGINX Plus Configuration](#nginx-plus-configuration)
- [Configuration for Cloud Providers](#configuration-for-cloud-providers)
- [Usage](#usage)
- [Troubleshooting](#troubleshooting)
- [Building a Software Package](#building-a-software-package)
Expand Down Expand Up @@ -91,7 +92,21 @@ You can install the NGINX Plus Integration with Cloud Autoscaling from the [Snap
sudo snap install nginx-asg-sync
```

### NGINX Plus Configuration
### Homebrew Installation

You can add the NGINX homebrew tap with

```console
brew tap nginxinc/tap
```

and then install the formula with

```console
brew install nginx-asg-sync
```

## NGINX Plus Configuration

As an example, we configure NGINX Plus to load balance two groups of instances -- backend-group-one and
backend-group-two. NGINX Plus routes requests to the appropriate group based on the request URI:
Expand Down Expand Up @@ -193,7 +208,7 @@ This also works when an instance is being terminated: the asg-sync will remove t
> requests to a terminated instance, make sure the instance goes to the `Terminating:Wait` state for a period greater
> than the interval `sync_interval_in_seconds`.

### Configuration for Cloud Providers
## Configuration for Cloud Providers

See the example for your cloud provider: [AWS](examples/aws.md), [Azure](examples/azure.md).

Expand Down
Loading