Basic authentication based on nginx.
Add a new line to the nginx/htpasswd file. Each line is in the format of username:password-hash.
Password hashes must be done using the Apache MD5 based algorithm, this can easily done using openssl:
echo "[password]" | openssl passwd -apr1 -stdin