These are my NGINX configurations. They are written for mainline NGINX on RHEL.
- Install
nginx
from the mainline repository,certbot
, andpython3-certbot-nginx
. Makesure rsync is available on the OS.Makesurersync
is available on the OS. - Move
/etc/nginx/conf.d/default.conf
to/etc/nginx/conf.d/default.conf.bk
- Run
setup.sh
- Generate a certificate with your hostname with the
certbot/default-quic
example. Copyetc/nginx/conf.d/sites_default_quic.conf
to the corresponding directory on your server and edit it approprieately. - Generate certificates with the example in the certbot directory.
- Make your actual vhost config based on the
sites_.*
samples in/etc/nginx/conf.d
.