As part of my upgrade process from a Pi3 to a Pi4 I am looking into moving from a VENV install to a Hassio setup - so far it looks like I can replicate everything I’ve been doing through the Hassio add-ons except one thing.
On my Pi3 I use a combination of HomeAssistant, an FTP server, an Apache Server, and a nifty tool called SFPG (Single File PHP Gallery) to:
- Upload motion-triggered pictures from my security cameras via FTP to a folder called ‘current’ for each camera (at /var/www/html/CAMERANAME/current).
- At the end of the hour, I move all pictures from the ‘current’ folder of each camera to a folder structure based on a CAMERANAME/YEAR/MONTH/DAY/HOUR naming convention.
- I have the SFPG php file located in the html (i.e. Apache base) directory (see below)
- By using the web server I am able to view the pictures taken in the album/folder structure based on camera name, date, and time.
I have installed the FTP plugin for Hassio and the cameras can upload the pictures taken to the FTP folder structure I have set up in the /share/ftp folder, e.g, /share/ftp/CAMERANAME/current.
I also installed the Portainer plugin and it looks like Apache is running as well, but as I am not that familiar with Hassio yet and I just installed Portainer I need some hints on how to make the /share/ftp folder the base directory for the Apache web server that runs in the container I just set up with Portainer. There are probably some configurations/variables I need to set when starting the Apache container but I have no idea where I would point them to.
Does anybody have any hints?
This is the folder structure I’m currently using in VENV on my Pi3: