forked from schweikert/mailgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README-PSGI
31 lines (24 loc) · 890 Bytes
/
README-PSGI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
The file mailgraph.psgi is a self contained psgi application, ready to be served
to a web server like Nginx by any PSGI capable app server, like Starman or Nginx Unit.
The required Perl Plack module usually comes in a package with 'plackup'.
You can test your installation with something like:
plackup --port 8000 /var/www/cgi-bin/mailgraph/mailgraph.psgi
This is an example json file for configuring Unit by Nginx:
{
"listeners": {
"127.0.0.1:8000": {
"pass": "applications/mailgraph"
}
},
"applications": {
"mailgraph": {
"type": "perl",
"script": "/var/www/cgi-bin/mailgraph/mailgraph.psgi"
}
}
}
Once the app server is running, the Nginx config entry can be as simple as:
location /mailgraph/ {
proxy_pass http://127.0.0.1:8000;
}
Then mailgraph could be accessed at https://your.host.tld/mailgraph