Ticket #145: nginx.conf

File nginx.conf, 1.4 KB (added by Andrew Benson, 14 years ago)
Line 
1user nobody;
2worker_processes 5;
3error_log /ublocal/ubmail/nginx/logs/nginx.log info;
4pid /var/run/nginx.pid;
5ssl_engine pkcs11;
6
7events {
8 worker_connections 2048;
9 multi_accept on;
10 devpoll_events 1;
11}
12
13mail {
14 imap_capabilities "IMAP4rev1" "UIDPLUS" "UNSELECT" "IDLE" "NAMESPACE" "QUOTA" "CHILDREN" "SASL-IR";
15 pop3_capabilities "USER" "RESP-CODES" "PIPELINING" "LOGIN-DELAY 300";
16 proxy_pass_error_message on;
17
18 server {
19 auth_http 127.0.0.1:8080/auth.php;
20 server_name imap.buffalo.edu;
21 listen 143;
22 protocol imap;
23 proxy on;
24 starttls on;
25 ssl_certificate certs/imap.buffalo.edu.crt;
26 ssl_certificate_key certs/imap.buffalo.edu.key;
27 }
28
29 server {
30 auth_http 127.0.0.1:8080/auth.php;
31 server_name imap.buffalo.edu;
32 listen 993;
33 protocol imap;
34 proxy on;
35 ssl on;
36 ssl_certificate certs/imap.buffalo.edu.crt;
37 ssl_certificate_key certs/imap.buffalo.edu.key;
38 }
39
40 server {
41 auth_http 127.0.0.1:8080/auth.php;
42 server_name pop.buffalo.edu;
43 listen 110;
44 protocol pop3;
45 proxy on;
46 starttls on;
47 ssl_certificate certs/pop.buffalo.edu.crt;
48 ssl_certificate_key certs/pop.buffalo.edu.key;
49 }
50
51 server {
52 auth_http 127.0.0.1:8080/auth.php;
53 server_name pop.buffalo.edu;
54 listen 995;
55 protocol pop3;
56 proxy on;
57 ssl on;
58 ssl_certificate certs/pop.buffalo.edu.crt;
59 ssl_certificate_key certs/pop.buffalo.edu.key;
60 }
61
62}