mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-03-17 03:01:01 +00:00
Feat: Add Pages bindings reference with R2_IMAGES
This commit is contained in:
24
README.md
24
README.md
@@ -90,6 +90,24 @@ This is a free community service. Donations help cover API and infrastructure co
|
||||
| KV Namespace | `DIRECT_IMG_CACHE` | Query → cache existence + timestamp |
|
||||
| KV Namespace | `DIRECT_IMG_RATE` | Per-IP daily new-search counter |
|
||||
|
||||
### Pages Bindings
|
||||
|
||||
Set in **Settings → Functions → Bindings**:
|
||||
|
||||
| Type | Variable name | Resource |
|
||||
|---|---|---|
|
||||
| R2 Bucket | `R2_IMAGES` | `direct-img-store` |
|
||||
| KV Namespace | `DIRECT_IMG_CACHE` | `DIRECT_IMG_CACHE` |
|
||||
| KV Namespace | `DIRECT_IMG_RATE` | `DIRECT_IMG_RATE` |
|
||||
|
||||
### Environment Variables / Secrets
|
||||
|
||||
Set in **Settings → Environment variables**:
|
||||
|
||||
| Type | Variable | Description |
|
||||
|---|---|---|
|
||||
| Secret | `BING_API_KEY` | Bing Image Search API subscription key |
|
||||
|
||||
### R2: `direct-img-store`
|
||||
|
||||
Key is derived deterministically from the query — no need to store it in KV.
|
||||
@@ -158,12 +176,6 @@ Set manually in **Security → WAF → Rate limiting rules**:
|
||||
- Per: IP
|
||||
- Action: Managed Challenge
|
||||
|
||||
### Environment Variables / Secrets
|
||||
|
||||
| Variable | Description |
|
||||
|---|---|
|
||||
| `BING_API_KEY` | Bing Image Search API subscription key |
|
||||
|
||||
---
|
||||
|
||||
## Stack
|
||||
|
||||
Reference in New Issue
Block a user