@@ -37,11 +37,14 @@ docker build -t tsidp .
37
37
docker run -d \
38
38
--name tsidp \
39
39
-p 443:443 \
40
+ -v tsidp-data:/data \
41
+ -e TS_STATE_DIR=/data \
40
42
-e TS_AUTHKEY=YOUR_TAILSCALE_AUTHKEY \
41
- -e TSNET_FORCE_LOGIN=1
43
+ -e TSNET_FORCE_LOGIN=1 \
42
44
-e TAILSCALE_USE_WIP_CODE=1 \
43
- -v tsidp-data:/var/lib/tsidp \
44
- tsidp --hostname=idp --dir=/var/lib/tsidp
45
+ -e TSIDP_ENABLE_STS=1 \
46
+ -e TS_HOSTNAME=idp \
47
+ tsidp
45
48
```
46
49
47
50
Visit ` https://idp.yourtailnet.ts.net ` to confirm the service is running.
@@ -125,24 +128,39 @@ tsidp supports all of the endpoints required & suggested by the [MCP Authorizati
125
128
126
129
## tsidp Configuration Options
127
130
128
- The ` tsidp ` server supports several command-line flags:
131
+ The ` tsidp ` server is configured by several command-line flags:
129
132
130
- - ` -- verbose ` : Enable verbose logging
131
- - ` -- port ` : Port to listen on (default: 443)
132
- - ` -- local-port ` : Allow requests from localhost
133
- - ` -- use-local-tailscaled ` : Use local tailscaled instead of tsnet
134
- - ` -- funnel ` : Use Tailscale Funnel to make tsidp available on the public internet so it works with SaaS products
135
- - ` -- hostname ` : tsnet hostname
136
- - ` -- dir ` : tsnet state directory
137
- - ` -- enable-sts ` : Enable OAuth token exchange using RFC 8693
138
- - ` -- enable-debug ` : Enable debug printing of requests to the server
133
+ - ` -verbose ` : Enable verbose logging
134
+ - ` -port ` : Port to listen on (default: 443)
135
+ - ` -local-port ` : Allow requests from localhost
136
+ - ` -use-local-tailscaled ` : Use local tailscaled instead of tsnet
137
+ - ` -funnel ` : Use Tailscale Funnel to make tsidp available on the public internet so it works with SaaS products
138
+ - ` -hostname ` : tsnet hostname
139
+ - ` -dir ` : tsnet state directory
140
+ - ` -enable-sts ` : Enable OAuth token exchange using RFC 8693
141
+ - ` -enable-debug ` : Enable debug printing of requests to the server
139
142
140
143
### Environment Variables
141
144
145
+ These are needed while tsidp is in development (< v1.0.0):
146
+
147
+ - ` TAILSCALE_USE_WIP_CODE ` : Enable work-in-progress code (default: "1", required)
142
148
- ` TS_AUTHKEY ` : Your Tailscale authentication key (required)
143
- - ` TS_HOSTNAME ` : Hostname for the ` tsidp ` server (default: "idp", Docker only)
144
- - ` TS_STATE_DIR ` : State directory (default: "/var/lib/tsidp", Docker only)
145
- - ` TAILSCALE_USE_WIP_CODE ` : Enable work-in-progress code (default: "1")
149
+
150
+ The docker container accepts environment variables that are mapped to the command-line flags:
151
+
152
+ | Environment Variable | CLI flag |
153
+ | ------------------------------- | -------------------------- |
154
+ | ` TS_HOSTNAME=<hostname> ` | ` -hostname <hostname> ` |
155
+ | ` TS_STATE_DIR=<directory> ` | ` -dir <directory> ` |
156
+ | ` TSIDP_USE_FUNNEL=1 ` | ` -funnel ` |
157
+ | ` TSIDP_PORT=<port> ` | ` -port <port> ` |
158
+ | ` TSIDP_LOCAL_PORT=<local-port> ` | ` -local-port <local-port> ` |
159
+ | ` TSIDP_ENABLE_STS=1 ` | ` -enable-sts ` |
160
+ | ` TSIDP_VERBOSE=1 ` | ` -verbose ` |
161
+ | ` TSIDP_ENABLE_DEBUG=1 ` | ` -enable-debug ` |
162
+
163
+ All environment variables are optional. When omitted the default value for the command-line flag will be used.
146
164
147
165
## Support
148
166
0 commit comments