Added basic auth
This commit is contained in:
@@ -57,6 +57,7 @@ services:
|
|||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
|
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
|
||||||
- media_volume:/var/html/media/
|
- media_volume:/var/html/media/
|
||||||
- static_volume:/var/html/static/
|
- static_volume:/var/html/static/
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
admin:admin
|
||||||
@@ -9,6 +9,14 @@ server {
|
|||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
location /dash/ {
|
||||||
|
auth_basic "Restricted Access";
|
||||||
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html/;
|
||||||
|
index index.html;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html/;
|
root /usr/share/nginx/html/;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user