Added ctf Nginx config

Added the Nginx config for the main ctf page
including https and http redirect rules using letsencrypt certificates.
Updated README.md
This commit is contained in:
Jan Groß
2018-07-09 07:11:18 -04:00
parent f765a0b6f9
commit d85fca0ef4
2 changed files with 97 additions and 1 deletions

View File

@@ -1 +1,11 @@
# Minzkrauts home-made CTF
# Minzkrauts home-made CTF
## Letsencrypt certificates
Navigate to certbot location and create certificate files with
```
sudo ./certbot-auto certonly --webroot -w var/www/html -d ctf.minzkraut.com --non-interactive --agree-tos --email {email}
```
Renew certificates and reload nginx with
```
sudo ./certbot-auto renew --webroot -w /var/www/html --post-hook "service nginx reload"
```