http basic auth

This commit is contained in:
bunkerity
2020-06-21 18:21:51 +02:00
parent 8561d47be0
commit caa415e126
5 changed files with 46 additions and 4 deletions

4
confs/auth-basic.conf Normal file
View File

@@ -0,0 +1,4 @@
location %AUTH_BASIC_LOCATION% {
auth_basic "%AUTH_BASIC_TEXT%";
auth_basic_user_file /etc/nginx/.htpasswd;
}

View File

@@ -9,6 +9,7 @@ server {
{
return 405;
}
%AUTH_BASIC%
%USE_PHP%
%HEADER_SERVER%
%X_FRAME_OPTIONS%