- IP restrictions
// modify server configuration file the allow 192.168 . 137.2 ; deny All;
- auth basic
auth_basic "Admin only" auth_basic_user_file /etc/nginx/.htpassed
//安装htpasswd sudo apt install apach2-utils sudo htpasswd -c /etc/nginx/.htpasswd admin