forked from thomas-hilaire/jmap-perl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
46 lines (35 loc) · 1.03 KB
/
INSTALL
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Debian install instructions (port to your own OS as you like)
# Might need some software too
apt-get install build-essential \
libanyevent-httpd-perl \
libdata-uuid-libuuid-perl \
libdatetime-perl \
libdbd-sqlite3-perl \
libdbi-perl \
libemail-address-perl \
libemail-mime-perl \
libhtml-parser-perl \
libhtml-strip-perl \
libhttp-tiny-perl \
libhttp-date-perl \
libimage-size-perl \
libio-socket-ssl-perl \
libjson-perl \
libjson-xs-perl \
liblocale-gettext-perl \
libswitch-perl
cpan AnyEvent::HTTPD::CookiePatch
cpan AnyEvent::IMAP
cpan Cookie::Baker
cpan Date::Parse
cpan HTML::GenerateUtil
# to run the server
apt-get install nginx screen
# OAuth2 config
If you want to use the Gmail OAUTH2 you will need your own secrets. Copy
config.example to config.json and replace XXX and YYY with your details.
# Running.
Replace /etc/nginx/sites-available/default with the a symlink to nginx.conf
Run bin/blocking.pl in one screen
Run bin/server.pl in another screen
There's various stuff hard coded too, oh well