cdn-setup

Configure content delivery networks.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cdn-setup" with this command: npx skills add bagelhole/devops-security-agent-skills/bagelhole-devops-security-agent-skills-cdn-setup

CDN Setup

Configure content delivery networks.

AWS CloudFront

aws cloudfront create-distribution --distribution-config '{ "CallerReference": "my-distribution", "Origins": { "Quantity": 1, "Items": [{ "Id": "myS3Origin", "DomainName": "mybucket.s3.amazonaws.com", "S3OriginConfig": {"OriginAccessIdentity": ""} }] }, "DefaultCacheBehavior": { "TargetOriginId": "myS3Origin", "ViewerProtocolPolicy": "redirect-to-https", "CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6" }, "Enabled": true }'

Cloudflare

Via API

curl -X POST "https://api.cloudflare.com/client/v4/zones"
-H "Authorization: Bearer $TOKEN"
-d '{"name":"example.com","jump_start":true}'

Cache Headers

location ~* .(jpg|jpeg|png|gif|ico|css|js)$ { expires 30d; add_header Cache-Control "public, immutable"; }

Best Practices

  • Set appropriate cache headers

  • Use cache invalidation sparingly

  • Implement cache warming

  • Monitor cache hit ratios

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

sops-encryption

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-administration

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-hardening

No summary provided by upstream source.

Repository SourceNeeds Review