NGINX Configs
These are my NGINX configurations. They are written for Fedora CoreOS's NGINX build with nginx-mod-stream
.
Getting Started
- Install
nginx
,nginx-mod-stream
, andpolicycoreutils-python-utils
on Fedora. Makesurersync
is available on the OS. - Comment out the default server block in
/etc/nginx/nginx.conf
. - Copy all configuration files in
/etc/nginx
except the ones named/etc/nginx/conf.d/sites_.*
to the corresponding location onto the server. - Run
setup.sh
- Make a dummy vhost listening on port
80
with the server_name you want. - Generate certificates with the example in the certbot directory.
- Copy
/etc/nginx/conf.d/sites_default.conf
to/etc/nginx/conf.d
for https redirection. - Make your actual vhost config based on the
sites_.*
samples in/etc/nginx/conf.d/sites_default.conf
.
Notes
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.
Description
Languages
Shell
100%