# nginx-boilerplate/nginx-boilerplate

Awesome Nginx configuration template

Repository: https://github.com/nginx-boilerplate/nginx-boilerplate
Canonical: https://ross.abutalabs.com/products/nginx-boilerplate
Language: Dockerfile
License: MIT
License Family: permissive
Topics: nginx, boilerplate
Last push: 2018-07-26T19:54:37+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4838, "days_push": 2960, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2438, forks 187 (observed 2026-08-28T04:06:51.514809+00:00)

## What it is
A boilerplate Nginx configuration template with include-based structure, optimized defaults, and handy snippets for SSL, rate limiting, caching, and PHP integration. It ships Docker and docker-compose setups, including Docker Swarm support.

## Use cases
- set up a production-ready nginx config
- secure nginx with an A-grade SSL setup
- rate limit requests in nginx
- run nginx with docker-compose
- deploy nginx to docker swarm
- configure fastcgi caching for php
- get sensible nginx defaults instead of writing configs from scratch

## When to choose
- you want a battle-tested nginx config baseline with SSL, caching, and rate limiting out of the box
- you deploy PHP-FPM apps behind nginx in Docker or Swarm
- you prefer include-based modular nginx configs

## When to avoid
- you use a web server other than nginx
- you need a control panel or GUI for server management
- the project's last release is from 2018 and you need support for the newest nginx features

## Facets
- artifact type: infra-config
- maturity: maintenance
- function: http-server, rate-limiting, caching, logging, security, configuration-management, boilerplate
- domain: web-development, self-hosted
- platform: self-hosted
- tags: nginx, nginx-config, ssl, php-fpm, docker-compose, docker-swarm, fastcgi, config-template, devops, containers, docker, linux, web-server

## Member repositories
- nginx-boilerplate/nginx-boilerplate (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:51.514809+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:19:36.627831+00:00, confidence not recorded.
  - readme: https://github.com/nginx-boilerplate/nginx-boilerplate (fetched 2026-08-28T04:06:51.514809+00:00, sha 0c35c4c5e4a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
