diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-30 14:25:02 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-30 14:25:02 +0800 |
commit | 5f00fdd06fa51bb0c82928e060d3f8811bc171e9 (patch) | |
tree | 4aaf446eeb120ccf62bbbd2696d576a3235c7f4f /services/templates/nginx/mail.conf.template | |
parent | 7178983a5b8a27d5f0f5b447528f0e23b50d75c1 (diff) | |
download | crupest-5f00fdd06fa51bb0c82928e060d3f8811bc171e9.tar.gz crupest-5f00fdd06fa51bb0c82928e060d3f8811bc171e9.tar.bz2 crupest-5f00fdd06fa51bb0c82928e060d3f8811bc171e9.zip |
mail: revert removing.
Diffstat (limited to 'services/templates/nginx/mail.conf.template')
-rw-r--r-- | services/templates/nginx/mail.conf.template | 29 |
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..ebb9f46 --- /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_MAILEROO_INBOUND_PATH@@ { + include conf.d/common/reverse-proxy; + proxy_pass http://mail-server:2345/@@CRUPEST_MAIL_SERVER_MAILEROO_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; +} |