Skip to content
Back to skills

Config Env Storage

ASecurity

Portable storage configuration across S3/R2/MinIO with optional CDN—env toggles, path-style endpoints, and URL generation

  • 147 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
testingawstesting

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add jpcaparas/superpowers-laravel --skill config-env-storage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Config Env Storage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Config Env Storage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpcaparas-config-env-storage/badge)](https://www.skillsdirectory.com/skills/jpcaparas-config-env-storage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel:config-env-storage
description: Portable storage configuration across S3/R2/MinIO with optional CDN—env toggles, path-style endpoints, and URL generation
---

# Storage Config (S3/R2/MinIO/CDN)

Configure storage once; switch providers via env.

## Env

```
FILESYSTEM_DISK=s3
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_DEFAULT_REGION=auto
AWS_BUCKET=...
AWS_ENDPOINT=https://r2.example.com       # for R2/MinIO
AWS_USE_PATH_STYLE_ENDPOINT=true          # if required
MEDIA_CDN_URL=https://cdn.example.com     # optional CDN/base URL
```

## Tips

- Prefer pre‑signed URLs for uploads/downloads when possible
- For CDN, prefix public URLs with `MEDIA_CDN_URL` (app URL generation helper)
- Use path‑style only when necessary; some providers require it

## Testing

- Fake storage in unit tests (`Storage::fake('s3')`)
- Integration tests verify URL formats and ACLs

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.