http basic auth fix

This commit is contained in:
bunkerity 2020-06-27 19:09:38 +02:00
parent 472ec31cd2
commit 1d6ab7275f
4 changed files with 13 additions and 11 deletions

View File

@ -370,9 +370,13 @@ ENV WRITE_ACCESS yes
```
# TODO
- Auth basic testing
- nginx compile flags
- x86 and ARM versions
- README improve
- docker tags
- Tutorials
- Full documentation
- Antibot with recaptcha v3
- Documentation
- Custom TLS certificates
- HSTS preload, HPKP
- Web UI

View File

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

View File

@ -1,5 +1,3 @@
root /www;
index index.html index.php;
location / {
try_files $uri $uri/ =404;
}
try_files $uri $uri/ =404;

View File

@ -95,10 +95,10 @@ USE_CLAMAV_UPLOAD="${USE_CLAMAV_UPLOAD-yes}"
USE_CLAMAV_SCAN="${USE_CLAMAV_SCAN-yes}"
CLAMAV_SCAN_REMOVE="${CLAMAV_SCAN_REMOVE-yes}"
USE_AUTH_BASIC="${USE_AUTH_BASIC-no}"
AUTH_BASIC_TEXT="{AUTH_BASIC_TEXT-Restricted area}"
AUTH_BASIC_LOCATION="{AUTH_BASIC_LOCATION-/}"
AUTH_BASIC_USER="{AUTH_BASIC_USER-changeme}"
AUTH_BASIC_PASSWORD="{AUTH_BASIC_PASSWORD-changeme}"
AUTH_BASIC_TEXT="${AUTH_BASIC_TEXT-Restricted area}"
AUTH_BASIC_LOCATION="${AUTH_BASIC_LOCATION-/}"
AUTH_BASIC_USER="${AUTH_BASIC_USER-changeme}"
AUTH_BASIC_PASSWORD="${AUTH_BASIC_PASSWORD-changeme}"
# install additional modules if needed
if [ "$ADDITIONAL_MODULES" != "" ] ; then