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_filesfallback 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