chore(nginx): Added htaccess
This commit is contained in:
@@ -5,6 +5,7 @@ RUN apk add --no-cache ffmpeg
|
|||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
copy .htpasswd /etc/nginx/.htpasswd
|
||||||
COPY index.html /usr/share/nginx/html/index.html
|
COPY index.html /usr/share/nginx/html/index.html
|
||||||
COPY stream.sh /stream.sh
|
COPY stream.sh /stream.sh
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
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
|
## Requirements
|
||||||
|
|
||||||
- Docker
|
- Docker
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ http {
|
|||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
auth_basic "Accès restreint";
|
||||||
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user