cdn
هذا المحتوى غير متوفر بلغتك بعد.
CDN Plugin
Section titled “CDN Plugin”CDN management with cache purging, HMAC-SHA256 signed URL generation, and multi-provider support. Pro plugin.
Requires: Basic license tier or higher.
nself license set nself_pro_...
Install
Section titled “Install”nself license set nself_pro_xxxxx...nself plugin install cdnWhat It Does
Section titled “What It Does”Manages CDN configuration across Cloudflare, Bunny, and Fastly from a single API. Handles cache purge requests by tag, URL, or zone with persistent logging of all purge operations. Generates HMAC-SHA256 signed URLs for time-limited secure asset access. Analytics snapshots from supported providers are stored locally for reporting without repeated API calls.
Configuration
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
CDN_PORT | 3036 | Port the CDN plugin service listens on |
CDN_PROVIDER | none | CDN provider: cloudflare, bunny, fastly |
CDN_API_KEY | none | API key for the selected CDN provider |
CDN_BASE_URL | none | CDN base URL for signed URL generation |
CDN_HMAC_SECRET | none | Secret key for HMAC-SHA256 signed URL signing |
| Port | Purpose |
|---|---|
3036 | CDN plugin HTTP service |
Database Tables
Section titled “Database Tables”4 tables added to your Postgres database.
np_cdn_configs: CDN provider configuration recordsnp_cdn_purge_log: Cache purge request historynp_cdn_signed_urls: Issued signed URL audit lognp_cdn_analytics: Cached CDN analytics snapshots
Nginx Routes
Section titled “Nginx Routes”| Route | Description |
|---|---|
/cdn/ | Proxied to CDN plugin service on port 3036 |