Rename default.conf to avoid override

This commit is contained in:
Tommy 2024-10-13 15:20:42 -07:00 committed by GitHub
parent f6242ebdfe
commit 6767e80e38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 2 deletions

View File

@ -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. 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` 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` 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. 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`. 6. Make your actual vhost config based on the `sites_.*` samples in `/etc/nginx/conf.d`.

View File

@ -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/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/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 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 sudo mkdir -p /etc/nginx/snippets