تخطَّ إلى المحتوى

cdn

هذا المحتوى غير متوفر بلغتك بعد.

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_...

Terminal window
nself license set nself_pro_xxxxx...
nself plugin install cdn

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.

Env VarDefaultDescription
CDN_PORT3036Port the CDN plugin service listens on
CDN_PROVIDERnoneCDN provider: cloudflare, bunny, fastly
CDN_API_KEYnoneAPI key for the selected CDN provider
CDN_BASE_URLnoneCDN base URL for signed URL generation
CDN_HMAC_SECRETnoneSecret key for HMAC-SHA256 signed URL signing
PortPurpose
3036CDN plugin HTTP service

4 tables added to your Postgres database.

  • np_cdn_configs: CDN provider configuration records
  • np_cdn_purge_log: Cache purge request history
  • np_cdn_signed_urls: Issued signed URL audit log
  • np_cdn_analytics: Cached CDN analytics snapshots
RouteDescription
/cdn/Proxied to CDN plugin service on port 3036