A couple of years ago, I wrote a simple website using python-flask website than ran on boot (when systemd was all new and shiny) for a "how to use a computer" class.
One of the issues you may have is that, in some cases, mounting a SMB share required elevated privileges. Getting that to work...