# nginx-config

nginx config files for my server

With the fun addition of a PowerShell Rick Rolling script

This configuration ensures A+ rating with 100/100/100/100 and without blacklisted ciphers for http/2 on [Qualys SSL Labs](https://www.ssllabs.com/ssltest/analyze.html?d=cwrcoding.com) (as of 2017-08-28)

My setup even handles http/2 on CentOS 7 with the help of the [Exove CentOS yum Repository](https://packages.exove.com/)

If you have any questions regarding nginx setup, Let's Encrypt certificates and so on I'd be glad to help, just contact me via [Twitter @CWRau](https://twitter.com/CWRau) or via [email cwrau@cwrcoding.com](mailto:cwrau@cwrcoding.com), both preferably pgp signed and encrypted to [my key](https://keybase.io/cwrau).
___

The crontabs I use to keep the repo up to date and renew the Let's Encrypt certificates is;

```bash
0 0 */15 * * /usr/bin/certbot renew --deploy-hook "cd /websites/nginx-config && docker-compose exec nginx nginx -s reload"
* * *    * * cd /websites/nginx-config && [ ! -f pause ] && ( /usr/bin/git fetch --all && bash needs_pull.sh && ( git clean -fd && git reset origin/master --hard && docker-compose down && docker-compose up -d --build ) )
```

# nginx-config

nginx config files for my server

With the fun addition of a PowerShell Rick Rolling script

This configuration ensures A+ rating with 100/100/100/100 and without blacklisted ciphers for http/2 on [Qualys SSL Labs](https://www.ssllabs.com/ssltest/analyze.html?d=cwrcoding.com) (as of 2017-08-28)

If you have any questions regarding nginx setup, Let's Encrypt certificates and so on I'd be glad to help, just contact me via [Twitter @CWRau](https://twitter.com/CWRau) or via [email cwrau@cwrcoding.com](mailto:cwrau@cwrcoding.com), both preferably pgp signed and encrypted to [my key](https://keybase.io/cwrau).
___

The crontabs I use to keep the repo up to date and renew the Let's Encrypt certificates is;

```bash
0 0 */15 * * /usr/bin/certbot renew --deploy-hook "cd /websites/nginx-config && docker-compose exec nginx nginx -s reload"
* * *    * * cd /websites/nginx-config && [ ! -f pause ] && ( /usr/bin/git fetch --all && bash needs_pull.sh && ( git clean -fd && git reset origin/master --hard && docker-compose down && docker-compose up -d --build ) )
```

Remove refrence to Exove repo, as http/2 is now handled by a newer nginx via docker
Remove refrence to Exove repo, as http/2 is now handled by a newer nginx via docker
