add nginx repo

This commit is contained in:
Joby 2024-10-23 17:10:30 -06:00
parent ad2904619d
commit 2eaa45bff3

View file

@ -6,6 +6,18 @@ if [ "$EUID" -ne 0 ]; then
exit 1
fi
# Add NGINX repository
echo "Adding NGINX repository..."
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/ubuntu $(lsb_release -cs) nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list
# Update package lists
apt-get update
# Install requirements
echo "Installing required packages..."
apt-get install -y nginx-extras nginx-module-njs