首页/ AI 技能 / @skilllib/skill-2014279369173184514
Skill站外收录 @skilllib/skill-2014279369173184514

wheels-deployment

为 Wheels 应用提供面向生产环境的全栈配置能力,涵盖安全加固(如 CSRF 防护、错误信息隐藏、HTTPS 强制启用)、性能调优(含多层缓存、数据库连接池、静态资源 CDN 分发)及环境差异化部署,确保系统稳定、高效且符合安全合规要求。

0.0 (0) 541 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Wheels Deployment ## Production Configuration ### config/settings.cfm (Production) ```cfm <cfif get("environment") == "production"> <cfscript> // Error handling set(showDebugInformation=false); set(showErrorInformation=false); set(sendEmailOnError=true); set(errorEmailAddress="admin@example.com"); // Performance set(cacheActions=true); set(cachePages=true); set(cachePartials=true); set(cacheQueries=true); // Security set(csrfProtection=true); set(obfuscateUrls=true); // Database set(autocommit=false); </cfscript> </cfif> ``` ## Security Checklist - [ ] CSRF protection enabled - [ ] showDebugInformation = false - [ ] showErrorInformation = false - [ ] Strong database passwords - [ ] HTTPS enabled - [ ] SQL injection prevention - [ ] XSS protection - [ ] Secure session configuration ## Performance Checklist - [ ] Enable all caching - [ ] Optimize database indexes - [ ] Use eager loading (include) - [ ] Enable GZIP compression - [ ] Minify CSS/JS - [ ] Use CDN for assets - [ ] Database connection pooling --- **Generated by:** Wheels Deployment Skill v1.0

评论 0

还没有评论,来抢沙发。