docs: align gateway auth docs with config schema
This commit is contained in:
@@ -115,7 +115,7 @@ Common close codes:
|
||||
|
||||
### Bearer Token Auth
|
||||
|
||||
If `gateway.auth.token` is configured, all WebSocket connections must provide authentication:
|
||||
If `server.token` is configured, all WebSocket connections must provide authentication:
|
||||
|
||||
```javascript
|
||||
const ws = new WebSocket('ws://localhost:18800', {
|
||||
@@ -127,7 +127,7 @@ const ws = new WebSocket('ws://localhost:18800', {
|
||||
|
||||
### Tailscale Identity
|
||||
|
||||
If `gateway.auth.trustTailscaleIdentity` is enabled, connections from Tailscale are trusted based on the `Tailscale-User-Login` header.
|
||||
If `server.tailscale_identity` is enabled, connections from Tailscale are trusted based on the `Tailscale-User-Login` header.
|
||||
|
||||
```javascript
|
||||
// Automatic when connecting via Tailscale
|
||||
@@ -136,7 +136,7 @@ If `gateway.auth.trustTailscaleIdentity` is enabled, connections from Tailscale
|
||||
|
||||
### HTTP Auth
|
||||
|
||||
If `gateway.auth.applyToHttp` is `true` (default when token is set), HTTP requests also require bearer token:
|
||||
If `server.auth_http` is `true` (default: true), HTTP requests also require bearer token when `server.token` is set:
|
||||
|
||||
```javascript
|
||||
fetch('http://localhost:18800/api/health', {
|
||||
|
||||
Reference in New Issue
Block a user