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

nginx-default-conf

生成适用于 Nginx conf.d 目录的标准配置文件,支持从 /usr/share/nginx/html 目录托管静态资源,内置 SPA 路由回退、强缓存策略、开发用 CORS 支持及自定义 500 类错误页面。

0.0 (0) 15 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# Nginx Default Conf Skill ## Purpose Generate nginx.default.conf file for nginx conf.d directory configuration. ## Output Create the file: `nginx.default.conf` ## Template See: `examples.md` in this directory for complete template and detailed examples. ## Notes - Nginx configuration for conf.d directory - Serves static files from `/usr/share/nginx/html` - Configured for SPA routing with `try_files` fallback to index.html - Enables aggressive caching with `expires max` - CORS enabled with wildcard origin for development - Custom error pages for 500-series errors - Used in Dockerfile: copied to `/etc/nginx/conf.d/default.conf`

评论 0

还没有评论,来抢沙发。