Skip to content

Commit bb080c4

Browse files
dimo414willnorris
authored andcommitted
Add a pointer to the default_bind global option
Signed-off-by: Michael Diamond <dimo414@gmail.com>
1 parent 4137648 commit bb080c4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,11 @@ To customize logging level or output, use the [log global option]:
199199

200200
## Network listener
201201

202+
> [!TIP]
203+
> If you prefer to use Tailscale by default for all sites you can use the [`default_bind`] global option, instead of `bind` in each site.
204+
202205
The provided network listener allows privately serving sites on your tailnet.
203-
Configure a site block as usual, and use the [bind] directive to specify a tailscale network address:
206+
Configure a site block as usual, and use the [`bind`] directive to specify a tailscale network address:
204207

205208
```caddyfile
206209
:80 {
@@ -269,7 +272,8 @@ Or they can be served on different ports of the same Tailscale node:
269272
}
270273
```
271274

272-
[bind]: https://caddyserver.com/docs/caddyfile/directives/bind
275+
[`bind`]: https://caddyserver.com/docs/caddyfile/directives/bind
276+
[`default_bind`]: https://caddyserver.com/docs/caddyfile/options#default-bind
273277

274278
### HTTPS support
275279

0 commit comments

Comments
 (0)