Skip to content

Commit

Permalink
Merge pull request #21 from masterful/patch-1
Browse files Browse the repository at this point in the history
Explain multiple hostname possibility
  • Loading branch information
codesuki authored Sep 6, 2017
2 parents f0b28e9 + 6658148 commit 53f1e63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ For now the available parameters are limited to things needed to make a nginx re

```go
type Container struct {
Name string // first host (space delimited) in VIRTUAL_HOST
Host string // VIRTUAL_HOST environment variable
Port string
Address string
Env map[string]string
}
```

**Note:** The Host field can contain more than one (space delimited) hostname - this is to allow for tasks to respond to more than one hostname (for instance, `example.com` and `www.example.com`). If using the nginx template, using the VIRTUAL_HOST string `example.com www.example.com` would result in a single upstream definition for `example.com`, and a server_name of `example.com www.example.com`, so that nginx responds to both (an advanced use case would be to use a regex definition for the second hostname).

## TODO
* Expose more information
* Expose VIRTUAL_HOST under environment variables instead of `Host`

0 comments on commit 53f1e63

Please sign in to comment.