diff --git a/README.md b/README.md index 21ec214..42cb3b0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ These are my NGINX configurations. They are written for `nginx-core` with `nginx 1. On Fedora, install `nginx-core`, `nginx-mod-stream`, `certbot` and `policycoreutils-python-utils`. On RHEL, install `nginx` from the mainline repository, `certbot`, and `python3-certbot-nginx`. Makesure `rsync` is available on the OS. 2. 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` 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. +4. Generate a certificate with your hostname with the `certbot/default-quic` example. Copy `etc/nginx/conf.d/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`. diff --git a/etc/nginx/conf.d/sites_default_quic.conf b/etc/nginx/conf.d/default-quic.conf similarity index 100% rename from etc/nginx/conf.d/sites_default_quic.conf rename to etc/nginx/conf.d/default-quic.conf diff --git a/etc/nginx/conf.d/sites_default.conf b/etc/nginx/conf.d/default.conf similarity index 100% rename from etc/nginx/conf.d/sites_default.conf rename to etc/nginx/conf.d/default.conf diff --git a/setup.sh b/setup.sh index eb14549..d8cf1a2 100644 --- a/setup.sh +++ b/setup.sh @@ -118,7 +118,7 @@ sudo systemctl enable --now nginx-rotate-session-ticket-keys.timer unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/http2.conf | sudo tee /etc/nginx/conf.d/http2.conf > /dev/null unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/server_tokens.conf | sudo tee /etc/nginx/conf.d/server_tokens.conf > /dev/null -unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/sites_default.conf | sudo tee /etc/nginx/conf.d/sites_default.conf > /dev/null +unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/default.conf | sudo tee /etc/nginx/conf.d/default.conf > /dev/null unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/tls.conf | sudo tee /etc/nginx/conf.d/tls.conf > /dev/null sudo mkdir -p /etc/nginx/snippets