update
This commit is contained in:
parent
2d8e5e7340
commit
8c0e6e29a1
4 changed files with 10 additions and 0 deletions
|
|
@ -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
|
ln -s /opt/nginx-kit /etc/nginx/kit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Update
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /opt/nginx-kit
|
||||||
|
git pull
|
||||||
|
nginx -t
|
||||||
|
systemctl reload nginx
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
In server block:
|
In server block:
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ server {
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
include snippets/cert/mydomain.com.conf;
|
include snippets/cert/mydomain.com.conf;
|
||||||
|
include kit/security.conf;
|
||||||
include kit/ssl/security.conf;
|
include kit/ssl/security.conf;
|
||||||
include kit/ssl/hsts.conf;
|
include kit/ssl/hsts.conf;
|
||||||
include kit/redirect/to-primary-domain.conf;
|
include kit/redirect/to-primary-domain.conf;
|
||||||
|
|
|
||||||
0
redirect/root-to-www.conf
Normal file
0
redirect/root-to-www.conf
Normal file
0
redirect/www-to-root.conf
Normal file
0
redirect/www-to-root.conf
Normal file
Loading…
Add table
Add a link
Reference in a new issue