diff --git a/README.md b/README.md index 12cd8ae..3573bce 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,15 @@ git clone https://git.forge.st/ops/nginx-kit.git /opt/nginx-kit ln -s /opt/nginx-kit /etc/nginx/kit ``` +### Update + +```bash +cd /opt/nginx-kit +git pull +nginx -t +systemctl reload nginx +``` + ## Usage In server block: diff --git a/examples/example.com.conf b/examples/example.com.conf index 8c8dbe2..eca7cbd 100644 --- a/examples/example.com.conf +++ b/examples/example.com.conf @@ -13,6 +13,7 @@ server { index index.html index.htm; include snippets/cert/mydomain.com.conf; + include kit/security.conf; include kit/ssl/security.conf; include kit/ssl/hsts.conf; include kit/redirect/to-primary-domain.conf; diff --git a/redirect/root-to-www.conf b/redirect/root-to-www.conf new file mode 100644 index 0000000..e69de29 diff --git a/redirect/www-to-root.conf b/redirect/www-to-root.conf new file mode 100644 index 0000000..e69de29