You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,8 @@ go build ./cmd/caddy
47
47
48
48
Multiple example configurations are provided in the [examples directory].
49
49
These examples expect an [auth key] to be set in the `TS_AUTHKEY` environment variable.
50
+
The [auth key] can optionally be an [oauth client secret] which will generate an [auth key] on demand.
51
+
In order for an [oauth client secret] to generate an [auth key] the tag that was registered with the [oauth client secret] must be provided in the caddy config. The ephemeral config option will not have an effect for oauth generated tokens. The linked documentation for [oauth client secret] indicates query parameters that can be appended to the client secret to control these settings.
50
52
All nodes registered while running these examples will be ephemeral and removed after disconnect.
51
53
See the comments in the individual files for details.
52
54
@@ -114,6 +116,10 @@ Supported options are:
114
116
# Default: false
115
117
webui true|false
116
118
119
+
# If set these tags will be included when registering the node
120
+
tags tag:test
121
+
122
+
117
123
# Any number of named node configs can be specified to override global options.
118
124
<node_name> {
119
125
# Tailscale auth key used to register this node.
@@ -134,6 +140,14 @@ Supported options are:
134
140
135
141
# If true, run the Tailscale web UI for remotely managing this node.
136
142
webui true|false
143
+
144
+
# If set these tags will be included when registering the node
145
+
# Overrides global configuration tags
146
+
tags tag:test
147
+
148
+
# If set this port will be used for tsnet.
149
+
# When unset tsnet will pick a random available port
150
+
port 4145
137
151
}
138
152
}
139
153
}
@@ -164,6 +178,7 @@ For Caddy [JSON config], add the `tailscale` app with fields from [tscaddy.App]:
0 commit comments