These are my NGINX configurations. They are written for nginx-core
with nginx-mod-stream
on Fedora and mainline NGINX on RHEL.
- On Fedora, install
nginx-core
,nginx-mod-stream
,certbot
andpolicycoreutils-python-utils
. On RHEL, installnginx
from the mainline repository,certbot
, andpython3-certbot-nginx
. Makesurersync
is available on the OS. - On Fedora, comment out the default server block in
/etc/nginx/nginx.conf
. On RHEL, 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/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
.
This is used on my tunnel servers with multiple IP addresses. Hence, you may see addresses like ipv4_1
and ipv4_2
. Just replace them with your own ip addresses.