Files
Mario Fetka 5897512fd9 Modernize Bongo protocols and administration
Complete the current IMAP, POP3, SMTP and proxy protocol work; add the validated setup and administration UI, packaging examples, tests, and maintained roadmap/documentation for the 0.7 development line.
2026-07-18 04:26:00 +02:00

31 lines
905 B
Plaintext

server {
listen 80;
server_name mail.example.net;
return 308 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name mail.example.net;
ssl_certificate /etc/letsencrypt/live/mail.example.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mail.example.net/privkey.pem;
client_max_body_size 10m;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Port 443;
proxy_connect_timeout 5s;
proxy_read_timeout 60s;
}
add_header Strict-Transport-Security "max-age=31536000" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "same-origin" always;
}