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 9b38db6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,36 @@ access_control:
policy: allow
```
## API
### `GET /v1/forward-auth`

Check if a client is authorized to access a domain.

#### Request

| Header | Required | Description |
| :----------------- | :------: | :------------------ |
| `X-Forwarded-For` | Yes | Client's IP address |
| `X-Forwarded-Host` | Yes | Requested domain |

#### Response

| Status | Description |
| :----- | :---------- |
| `204` | Authorized |
| `403` | Forbidden |

### `GET /v1/health`

Check if the service is healthy.

#### Response

| Status | Description |
| :----- | :---------- |
| `204` | Healthy |

## Deployment

### Traefik
Expand Down

0 comments on commit 9b38db6

Please sign in to comment.