Skip to content

Commit

Permalink
docs: document the HTTP API
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed Nov 4, 2024
1 parent 40efe1f commit 5deafe6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,30 @@ access_control:
policy: allow
```
## API
### `/v1/forward-auth`

Check if a client is authorized to access a domain.

#### Request

- `X-Forwarded-For`: Client's IP address
- `X-Forwarded-Host`: Requested domain

#### Response

- `204`: Authorized
- `403`: Forbidden

### `/v1/health`

Check if the service is running.

#### Response

- `204`: The service is running

## Deployment

### Traefik
Expand Down

0 comments on commit 5deafe6

Please sign in to comment.