Configuring Nginx only in conf. d

Hello, if you install the latest versions of Nginx coming after 1.25 from the official repository, then there is no /etc/nginx/sites-available and /etc/nginx/sites-enabled, they are outdated, and conf. d is used for configurations. Why not simplify PeerTube and redo it this way? This would make it easier to use both the classic install and install and manage Docker. Moreover, we have a « 1 site » fast enabling and disabling or managing multiple sites is not required. What do you say? Thanks

/etc/nginx/sites-available and /etc/nginx/sites-enabled

They have never been there from the Nginx repo’s, they are solely coming with a vanity of linux distros

So maybe it makes sense to supplement the peertube installation instructions by installing the latest version of nginx from the official repository, something like that, and then it will be clear which version is used. And then in debian, one version in Ubuntu is different, lead to the same standard, so to speak.
Ubuntu

sudo apt-get update && sudo apt-get upgrade -y && sudo sudo apt-get autoremove -y && sudo apt install curl gnupg2 ca-certificates lsb-release dirmngr software-properties-common apt-transport-https -y && curl -fSsL https://nginx.org/keys/nginx_signing.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg > /dev/null && echo "deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/ubuntu $(lsb_release -cs) nginx" | sudo tee /etc/apt/sources.list.d/nginx.list && sudo apt update && sudo apt install nginx -y && sudo systemctl restart nginx && sudo systemctl status nginx

Debian

sudo apt-get update && sudo apt-get upgrade -y && sudo sudo apt-get autoremove -y && sudo apt install curl gnupg2 ca-certificates lsb-release dirmngr software-properties-common apt-transport-https -y && curl -fSsL https://nginx.org/keys/nginx_signing.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg > /dev/null && echo "deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/debian `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list && echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" | sudo tee /etc/apt/preferences.d/99nginx && sudo apt-get update && sudo apt install nginx -y && sudo systemctl restart nginx && sudo systemctl status nginx

Personally, I would consider this outside the scope of the PeerTube documentation, as they focus on « standard » out-of-the-box installations. This might cause confusion for those who do not have 20 years of experience in customising their Linux systems.

1 « J'aime »

) This is just my suggestion