aboutsummaryrefslogtreecommitdiff
path: root/services/templates/nginx/mail.conf.template
diff options
context:
space:
mode:
Diffstat (limited to 'services/templates/nginx/mail.conf.template')
-rw-r--r--services/templates/nginx/mail.conf.template29
1 files changed, 29 insertions, 0 deletions
diff --git a/services/templates/nginx/mail.conf.template b/services/templates/nginx/mail.conf.template
new file mode 100644
index 0000000..1c2a2ca
--- /dev/null
+++ b/services/templates/nginx/mail.conf.template
@@ -0,0 +1,29 @@
+server {
+ server_name mail.@@CRUPEST_DOMAIN@@;
+ include conf.d/common/https-listen;
+
+ location = /robots.txt {
+ root /srv/mail;
+ }
+
+ location = /@@CRUPEST_MAIL_SERVER_AWS_INBOUND_PATH@@ {
+ include conf.d/common/reverse-proxy;
+ proxy_pass http://mail-server:2345/@@CRUPEST_MAIL_SERVER_AWS_INBOUND_PATH@@;
+ }
+
+ location / {
+ include conf.d/common/reverse-proxy;
+ proxy_pass http://roundcubemail:80/;
+ }
+
+ client_max_body_size 5G;
+}
+
+
+server {
+ server_name mail.@@CRUPEST_DOMAIN@@;
+ include conf.d/common/http-listen;
+
+ include conf.d/common/https-redirect;
+ include conf.d/common/acme-challenge;
+}