Skip to content

Commit

Permalink
example for entrypoint on one ip address
Browse files Browse the repository at this point in the history
Add an example and short descripton, similar as in traefik#1194
  • Loading branch information
SimonHeimberg authored and traefiker committed Jul 16, 2020
1 parent a3df5b9 commit 23ff10c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/content/routing/entrypoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -800,3 +800,31 @@ entrypoints.websecure.http.tls.domains[1].sans=foo.test.com,bar.test.com
entrypoints.websecure.address=:443
entrypoints.websecure.http.tls.certResolver=leresolver
```

### listen on some ip addresses only

```toml tab="File (TOML)"
[entryPoints.oneIPv4Address]
address = "192.168.2.7:8888" # network ip address INSIDE container
[entryPoints.oneIPv6Address]
address = "[2001:db8::1]:8888" # network ip address INSIDE container
```

```yaml tab="File (yaml)"
entryPoints:
oneIPv4Address:
address: "192.168.2.7:8888" # network ip address INSIDE container
oneIPv6address:
address: "[2001:db8::1]:8888" # network ip address INSIDE container
```
```bash tab="CLI"
entrypoints.oneIPv4Address.address=192.168.2.7:8888 # network ip address INSIDE container
entrypoints.oneIPv6Address.address=[2001:db8::1]:8888 # network ip address INSIDE container
```

Full details for how to specify `address` can be found in [net.Listen](https://golang.org/pkg/net/#Listen) (and [net.Dial](https://golang.org/pkg/net/#Dial)) of the doc for go.

!!! warning

For published ports, the ip address from host network may not be visible depending on the orchestrator.

0 comments on commit 23ff10c

Please sign in to comment.