37d8caf409
Signed-off-by: Tommy <contact@tommytran.io>
19 lines
1.1 KiB
Markdown
19 lines
1.1 KiB
Markdown
# NGINX Configs
|
|
|
|
[![ShellCheck](https://github.com/TommyTran732/NGINX-Configs/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/TommyTran732/NGINX-Configs/actions/workflows/shellcheck.yml)
|
|
|
|
These are my NGINX configurations. They are written for `nginx-core` with `nginx-mod-stream` on Fedora and mainline NGINX on RHEL.
|
|
|
|
## Getting Started
|
|
|
|
1. Install `nginx-core`, `nginx-mod-stream`, and `policycoreutils-python-utils` on Fedora. Makesure `rsync` is available on the OS.
|
|
2. Comment out the default server block in `/etc/nginx/nginx.conf`.
|
|
3. Run `setup.sh`
|
|
4. Generate a certificate with your hostname with the `certbot/default-quic` example. Copy `etc/nginx/conf.d/sites_default_quic.conf` to the corresponding directory on your server and edit it approprieately.
|
|
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`.
|
|
|
|
## 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.
|