Below mentioned method is used to hide or remove the NGIX details from the header of your http requests.
sudo apt-get update
sudo apt-get install nginx-extras
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
# validate email addresses | |
def validate_email(email): | |
pattern = r"(^(?!-|\.)([a-zA-Z0-9._%+-]+)@(?!-)[a-zA-Z0-9.-]+(?<=[a-zA-Z0-9])\.[a-zA-Z]{2,}$)" | |
if re.match(pattern, email): | |
return True | |
else: | |
return False | |
if __name__ == "__main__": |