Skip to content

kaihendry/camftp2web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

echo "user:pass" > ftp-users.txt

These user and passwords correspond to the FTP push upload settings of your Webcams.

How to monitor logs

docker logs -f ftp

How to serve /var/www/cam from Apache

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 :(