No description
Find a file
2026-06-05 04:20:31 +00:00
examples 添加 examples/example.com.conf 2026-06-05 04:08:52 +00:00
proxy_pass 添加 proxy_pass/websocket.conf 2026-06-05 04:20:31 +00:00
redirect 添加 redirect/to-primay-domain.conf 2026-06-05 04:03:24 +00:00
ssl 添加 ssl/force.conf 2026-06-05 03:55:19 +00:00
templates 添加 templates/certs-example.com.conf 2026-06-05 04:10:44 +00:00
README.md 更新 README.md 2026-06-05 04:15:01 +00:00

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;
	# ...
}

Tamplates

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;
	# ...
}