diff options
Diffstat (limited to 'templates/nginx/mail.conf.template')
| -rw-r--r-- | templates/nginx/mail.conf.template | 27 | 
1 files changed, 27 insertions, 0 deletions
| diff --git a/templates/nginx/mail.conf.template b/templates/nginx/mail.conf.template new file mode 100644 index 0000000..ba2e44e --- /dev/null +++ b/templates/nginx/mail.conf.template @@ -0,0 +1,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; +} | 
