diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-03 08:37:38 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-03 08:37:38 -0400 |
commit | 47f90d0916ac34ef132e3bb6da92a4a67dffbba8 (patch) | |
tree | 764a6aee2dea7a69096eba27c4264776f8190380 /files/usr/local/etc/nginx/vhosts.conf.smtp_server | |
parent | ee583b5929925b2e9658385430da4f73b4883287 (diff) | |
download | infrastructure-47f90d0916ac34ef132e3bb6da92a4a67dffbba8.tar.gz |
add postfix/rspamd
Diffstat (limited to 'files/usr/local/etc/nginx/vhosts.conf.smtp_server')
-rw-r--r-- | files/usr/local/etc/nginx/vhosts.conf.smtp_server | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/files/usr/local/etc/nginx/vhosts.conf.smtp_server b/files/usr/local/etc/nginx/vhosts.conf.smtp_server new file mode 100644 index 0000000..71d6db8 --- /dev/null +++ b/files/usr/local/etc/nginx/vhosts.conf.smtp_server @@ -0,0 +1,22 @@ +server { + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + + http2 on; + + ssl_certificate ${rspamd_tls_cert}; + ssl_certificate_key ${rspamd_tls_key}; + + add_header Strict-Transport-Security "max-age=63072000" always; + + location / { + proxy_http_version 1.1; + + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto \$scheme; + + proxy_pass http://127.0.0.1:${rspamd_port}/; + } +} |