You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
201 B

  1. set $auth_basic Restricted;
  2. auth_basic $auth_basic;
  3. auth_basic_user_file includes.d/auth.passwd;
  4. # Use openssl for generate basic password
  5. # echo "MYUSER:$(openssl passwd -apr1 PASSWORD)" > auth.passwd