echo "user:pass" > ftp-users.txt
These user and passwords correspond to the FTP push upload settings of your Webcams.
docker logs -f ftp
Ensure Digest authentication module is enabled:
/etc/httpd/conf/httpd.conf:LoadModule auth_digest_module modules/mod_auth_digest.so
In Apache to protect the file listings, but not the somewhat unguessable file (TODO: Make them random) names:
tee newfile <<EOF
<Files .>
AuthType Digest
AuthName "cam"
AuthBasicProvider file
AuthUserFile "/etc/httpd/digest-password"
Require valid-user
</Files>
EOF
To create /etc/httpd/digest-password
:
# htdigest -c /etc/httpd/digest-password cam letmein
This approach allows you to link to the filenames so that you won't get a constant authentication modal from IOS Safari :(