NGINX Update - Redcrest-Solutions/FlyingFleet-issues GitHub Wiki

As all the infrastructure runs behind a NGINX instance, it's important to keep it up to date. For this reason it may be needed to upgrade to the latest nginx version via:

sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y

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 and upgrade Nginx
sudo apt update
sudo apt install nginx -y

To check the logs of the nginx itself

sudo grep -E "error|crit|alert" /var/log/nginx/error.log | tail -n 20

To run CURL with full debug

curl -v https://www.flying-fleet.com

To execute the HTTP request from command line

printf "GET /Help/Home HTTP/1.1\r\nHost: www.flying-fleet.com\r\n\r\n" | nc 127.0.0.1 BACKEND_PORT