docs: add Claude AI assistant rules and configuration
Add comprehensive rule documentation for AI-assisted development covering authentication surfaces, outbound-call safety invariants, and other project conventions to guide Claude's understanding of critical system behaviors.
This commit is contained in:
@@ -4,6 +4,25 @@ All configuration is via environment variables, loaded through Pydantic Settings
|
||||
|
||||
## Environment Variables
|
||||
|
||||
### Auth (Casdoor SSO + owner)
|
||||
|
||||
The gateway is **owner-only**: the browser signs in via Casdoor (JWT), MCP/CLI
|
||||
clients use owner-minted PATs, and only `OWNER_NAME` may use any surface. With
|
||||
`CASDOOR_ENABLED=false` the gateway runs in dev-owner mode — permitted **only** on
|
||||
a loopback `HOST`. Startup refuses SSO-enabled-with-missing-config and
|
||||
SSO-disabled-off-loopback.
|
||||
|
||||
| Variable | Description | Default | Required |
|
||||
|----------|-------------|---------|----------|
|
||||
| `CASDOOR_ENABLED` | Enable Casdoor SSO | `false` | No |
|
||||
| `CASDOOR_ENDPOINT` | Casdoor base URL | `https://id.ouranos.helu.ca` | If SSO on |
|
||||
| `CASDOOR_CLIENT_ID` | Casdoor application client ID | — | If SSO on |
|
||||
| `CASDOOR_CLIENT_SECRET` | Casdoor application client secret | — | If SSO on |
|
||||
| `CASDOOR_ORG_NAME` | Casdoor organization | `heluca` | No |
|
||||
| `CASDOOR_APP_NAME` | Casdoor application name | — | No |
|
||||
| `OWNER_NAME` | Casdoor username of the single operator | — | If SSO on |
|
||||
| `PUBLIC_BASE_URL` | Public base URL for OAuth discovery (else derived) | — | No |
|
||||
|
||||
### SIP Trunk
|
||||
|
||||
| Variable | Description | Default | Required |
|
||||
|
||||
Reference in New Issue
Block a user