nginx-kit/README.md
2026-06-05 04:14:47 +00:00

560 B

Nginx Kit

Start

git clone https://git.forge.st/ops/nginx-kit.git /opt/nginx-kit
ln -s /opt/nginx-kit /etc/nginx/kit

Usage

In server block:

server {
	# ...
	include	kit/ssl/force.conf;
	# ...
}

Tempaltes

SSL Certs

cd /etc/nginx
mkdir snippets/cert
cp kit/templates/cert-example.com.conf snippets/cert/mydomain.com.conf
vi snippets/cert/mydomain.com.conf

Replace the path with yours, then include in your server block:

server {
	# ...
	include snippets/cert/mydomain.com.conf;
	# ...
}