This is the (as of yet incomplete) backend server for the Foal UI.
While rudimentary AAA works, the backend should not yet be used for private email archives unless restricted behind some form of external/parent authentication mechanism.
tools/setup.py
first. This will create a ponymail.yaml for the backend server as wellpipenv
, for example via aptitude: apt install pipenv
.pipenv install -r requirements.txt
pipenv run python3 main.py
This should fire up a backend server on 127.0.0.1:8080. You can then proxy to that using a web server of your choice. The /api/
URL of your online archive should be passed straight to the backend, while the rest should be served from the webui/
directory in this repository.
An example Apache HTTPd configuration could be (for plain-text HTTP):
<VirtualHost *:80> ServerName archives.example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/foal/webui/ # PathInfo is needed for threads AcceptPathInfo On ProxyPass /api/ http://localhost:8080/api/ <Directory /var/www/foal/webui/> Require all granted # MultiViews means you can shorten threads to https://localhost/thread/blablabla Options +MultiViews </Directory> </VirtualHost>