You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/02/18 09:28:54 UTC
[incubator-ponymail-foal] branch master updated: Add sample web
server configs, WIP
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 86ff7f2 Add sample web server configs, WIP
86ff7f2 is described below
commit 86ff7f2e7f464be40090c47c720c008cff62f8f1
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Feb 18 10:28:46 2021 +0100
Add sample web server configs, WIP
---
INSTALL.md | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/INSTALL.md b/INSTALL.md
index 9193aff..52653b7 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -44,6 +44,26 @@ pipenv install -r requirements.txt
~~~shell script
pipenv run python3 main.py
~~~
+- use a web server like httpd or nginx to serve UI and proxy to the API. A sample httpd configuration could be:
+~~~apache
+<VirtualHost *:80>
+ ServerName ponymail.example.org
+ DocumentRoot /var/www/ponymail-foal/webui/
+ ProxyPass /api/ http://localhost:8080/api/
+ AcceptPathInfo On
+</VirtualHost>
+~~~
+
+A sample nginx config could be:
+~~~nginx
+server {
+ root /var/www/ponymail-foal/webui/;
+ index index.html index.htm;
+ location /api/ {
+ proxy_pass http://127.0.0.1:8080/api/;
+ }
+}
+~~~
## Archiving new emails via Postfix or the likes