From b7f4ce7c783c4765b9598d77e954bc23ac71ddf3 Mon Sep 17 00:00:00 2001 From: l-nmch Date: Tue, 7 Apr 2026 22:24:29 +0200 Subject: [PATCH] chore(nginx): Added htaccess --- Dockerfile | 1 + README.md | 2 ++ htaccess | 1 + nginx.conf | 2 ++ 4 files changed, 6 insertions(+) create mode 100644 htaccess diff --git a/Dockerfile b/Dockerfile index ae9791e..c4d969e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN apk add --no-cache ffmpeg # Configuration COPY nginx.conf /etc/nginx/nginx.conf +copy .htpasswd /etc/nginx/.htpasswd COPY index.html /usr/share/nginx/html/index.html COPY stream.sh /stream.sh diff --git a/README.md b/README.md index 304213f..4c316c4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Fake cam is a simple docker container running a fake webcam. It is used for educational purposes to teach ethical hacking. +> Default creds are : admin | cam123 + ## Requirements - Docker diff --git a/htaccess b/htaccess new file mode 100644 index 0000000..6ba08a6 --- /dev/null +++ b/htaccess @@ -0,0 +1 @@ +admin:$apr1$9BHdWLjy$JmKHB2z/sQdeOD37QuaOv/ \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 1fc0182..6d59f8c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -12,6 +12,8 @@ http { listen 80; location / { + auth_basic "Accès restreint"; + auth_basic_user_file /etc/nginx/.htpasswd; root /usr/share/nginx/html; index index.html; }