bunkerweb 1.4.0
This commit is contained in:
11
core/authbasic/confs/server-http/auth-basic.conf
Normal file
11
core/authbasic/confs/server-http/auth-basic.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
{% if USE_AUTH_BASIC == "yes" +%}
|
||||
{% if AUTH_BASIC_LOCATION == "sitewide" %}
|
||||
auth_basic "{{ AUTH_BASIC_TEXT }}";
|
||||
auth_basic_user_file {{ NGINX_PREFIX }}server-http/htpasswd;
|
||||
{% else %}
|
||||
location {{ AUTH_BASIC_LOCATION }} {
|
||||
auth_basic "{{ AUTH_BASIC_TEXT }}";
|
||||
auth_basic_user_file {{ NGINX_PREFIX }}server-http/htpasswd;
|
||||
}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
4
core/authbasic/confs/server-http/htpasswd
Normal file
4
core/authbasic/confs/server-http/htpasswd
Normal file
@@ -0,0 +1,4 @@
|
||||
{% set crypt = import('crypt') %}
|
||||
{% if USE_AUTH_BASIC == "yes" %}
|
||||
{{ AUTH_BASIC_USER }}:{{ crypt.crypt(AUTH_BASIC_PASSWORD, crypt.mksalt(crypt.METHOD_SHA512)) }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user