2024-06-24 10:21:29 -07:00
# NGINX Configs
2024-06-24 21:18:45 -07:00
[![ShellCheck ](https://github.com/TommyTran732/NGINX-Configs/actions/workflows/shellcheck.yml/badge.svg )](https://github.com/TommyTran732/Linux-Setup-Scripts/actions/workflows/shellcheck.yml)
2024-06-26 11:18:15 -07:00
These are my NGINX configurations. They are written for Fedora CoreOS's `nginx-core` build with `nginx-mod-stream` .
2024-06-24 10:21:29 -07:00
## Getting Started
2024-06-26 11:19:13 -07:00
1. Install `nginx-core` , `nginx-mod-stream` , and `policycoreutils-python-utils` on Fedora. Makesure `rsync` is available on the OS.
2024-06-24 10:21:29 -07:00
2. Comment out the default server block in `/etc/nginx/nginx.conf` .
2024-06-24 21:16:18 -07:00
3. Run `setup.sh`
4. Make a dummy vhost listening on port `80` with the server_name you want.
5. Generate certificates with the example in the certbot directory.
6. Make your actual vhost config based on the `sites_.*` samples in `/etc/nginx/conf.d` .
2024-06-24 10:21:29 -07:00
## 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.