Docker-Compose together wit the Docker Image is to create the "HTTP File Transfer" Image
See also https://coolscript.org/index.php/HTTP_Copy for more informations

Purpose:
-HTTP copy (hcp.pl) is a small perl script which allows you to upload data through your Apache Server to disk.
 It was made to establish an alternative to scp without the need of dealing with PAM or Shell issues.
 HFT/HCP is using the HTTP POST method and there shouldn't be a size limit unless you define one
-HTTP File Transfer (HFT) is the server part which is dealing with the filetransfer

Prerequisite
-Need  Docker / Docker Compose
 See https://docs.docker.com/engine/install/debian/


Envrionment
-Mandatory: Create the default data directory if you plan to use a bind volume
 mkdir /usr/local/hft-data
-IMPORTANT, assign the www-data user to be the owner for the docker bind volume (if you are using bind):
 chown www-data /usr/local/hft-data
-CUSTOMIZE
 see ./var/www/hft/cgi-bin/index.cgi and change the data directory

Install Image
 docker load -i hft.tar.gz

Start:
 docker-compose up -d

Stop:
 docker-compose down

ATTACH
 docker exec -it hft bash

CREDENTIALS
 See the Apache htpasswd file in /var/www/hft/htpasswd.users
 The preconfigured account is admin/admin
 Feel free to change/add user within that file using htpasswd

CLIENT SAMPLE
 hcp.pl
 hcp.pl -url http://localhost -u admin -p admin  -f ./some-file.txt -i -g
 hcp.pl -url http://localhost -u admin -p admin  -f ./some-file.txt 


FURTHER NOTE
 The syslog option which is described on https://coolscript.org/index.php/HTTP_Copy for more informations
 has been switched off/commented off, as this makes no sense on Docker

Encryption
 A self signed certificate has been attached to the Apache config in /etc/ssl/private
