建立帳號 sh -c "echo -n 'bright:' >> /etc/nginx/.htpasswd" 利用 openssl 建立密碼 sh -c "openssl passwd -apr1 >> /etc/nginx/.htpasswd" 加入 NGINX conf 設定 auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/.htpasswd;
建立帳號 sh -c "echo -n 'bright:' >> /etc/nginx/.htpasswd" 利用 openssl 建立密碼 sh -c "openssl passwd -apr1 >> /etc/nginx/.htpasswd" 加入 NGINX conf 設定 auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/.htpasswd;