Added basic auth

This commit is contained in:
ITQ committed 2024-04-03 05:46:03 +03:00
1 parent 0eda4df17a
commit 5d4340ae28
3 files changed
+10

No files matched your search

+1
View File
@@ -0,0 +1 @@
admin:admin
+8
View File
@@ -9,6 +9,14 @@ server {
proxy_set_header Host $host;
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 / {
root /usr/share/nginx/html/;
index index.html;