chore(nginx): Added htaccess

This commit is contained in:
2026-04-07 22:24:29 +02:00
parent 16089c638e
commit b7f4ce7c78
4 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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

1
htaccess Normal file
View File

@@ -0,0 +1 @@
admin:$apr1$9BHdWLjy$JmKHB2z/sQdeOD37QuaOv/

View File

@@ -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;
}