Dont use proxy_proto by default for streams, disable default mail server configuration
This commit is contained in:
parent
2eb94a9106
commit
9cfb210ebb
@ -14,23 +14,25 @@ mail {
|
||||
#ssl_session_cache shared:SSL:10m;
|
||||
#ssl_session_timeout 10m;
|
||||
|
||||
server {
|
||||
listen 25;
|
||||
listen 465 ssl;
|
||||
protocol smtp;
|
||||
smtp_auth login plain cram-md5;
|
||||
}
|
||||
include /etc/nginx/mail.d/*.conf;
|
||||
|
||||
server {
|
||||
listen 110;
|
||||
listen 995 ssl;
|
||||
protocol pop3;
|
||||
pop3_auth plain apop cram-md5;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 143;
|
||||
listen 993 ssl;
|
||||
protocol imap;
|
||||
}
|
||||
# server {
|
||||
# listen 25;
|
||||
# listen 465 ssl;
|
||||
# protocol smtp;
|
||||
# smtp_auth login plain cram-md5;
|
||||
# }
|
||||
#
|
||||
# server {
|
||||
# listen 110;
|
||||
# listen 995 ssl;
|
||||
# protocol pop3;
|
||||
# pop3_auth plain apop cram-md5;
|
||||
# }
|
||||
#
|
||||
# server {
|
||||
# listen 143;
|
||||
# listen 993 ssl;
|
||||
# protocol imap;
|
||||
# }
|
||||
}
|
||||
|
@ -8,7 +8,5 @@ stream {
|
||||
'$session_time "$upstream_addr" '
|
||||
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
||||
|
||||
proxy_protocol on;
|
||||
|
||||
include /etc/nginx/stream.d/*.conf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user