Files
ctf/README.md
Jan Groß d85fca0ef4 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
2018-07-09 07:24:21 -04:00

11 lines
385 B
Markdown

# 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"
```