aboutsummaryrefslogtreecommitdiff
path: root/templates/nginx/mail.conf.template
blob: ba2e44e6ec00ca1532aeed99943953d3be2e3d8b (plain)
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
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name mail.${CRUPEST_DOMAIN};
    
    location / {
        include common/proxy-common;
        proxy_pass http://roundcubemail:80/;
    }

    location /rspamd/ {
        include common/proxy-common;
        proxy_pass http://mailserver:11334/;
    }

    client_max_body_size 5G;
}


server {
    listen 80;
    listen [::]:80;
    server_name mail.${CRUPEST_DOMAIN};

    include common/https-redirect;
    include common/acme-challenge;
}