Have nginx listen over ipv6
This commit is contained in:
@@ -21,10 +21,12 @@ http {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
# TLS configuration
|
# TLS configuration
|
||||||
{% if TLS and not TLS_ERROR %}
|
{% if TLS and not TLS_ERROR %}
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
include /etc/nginx/tls.conf;
|
include /etc/nginx/tls.conf;
|
||||||
ssl_session_cache shared:SSLHTTP:50m;
|
ssl_session_cache shared:SSLHTTP:50m;
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
@@ -90,6 +92,7 @@ mail {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 25;
|
listen 25;
|
||||||
|
listen [::]:25;
|
||||||
{% if TLS and not TLS_ERROR %}
|
{% if TLS and not TLS_ERROR %}
|
||||||
starttls on;
|
starttls on;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -100,6 +103,7 @@ mail {
|
|||||||
{% if not TLS_ERROR %}
|
{% if not TLS_ERROR %}
|
||||||
server {
|
server {
|
||||||
listen 143;
|
listen 143;
|
||||||
|
listen [::]:143;
|
||||||
{% if TLS %}
|
{% if TLS %}
|
||||||
starttls only;
|
starttls only;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -110,12 +114,14 @@ mail {
|
|||||||
{% if TLS %}
|
{% if TLS %}
|
||||||
server {
|
server {
|
||||||
listen 465 ssl;
|
listen 465 ssl;
|
||||||
|
listen [::]:465 ssl;
|
||||||
protocol smtp;
|
protocol smtp;
|
||||||
smtp_auth plain;
|
smtp_auth plain;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 597;
|
listen 587;
|
||||||
|
listen [::]:587;
|
||||||
starttls only;
|
starttls only;
|
||||||
protocol smtp;
|
protocol smtp;
|
||||||
smtp_auth plain;
|
smtp_auth plain;
|
||||||
@@ -123,6 +129,7 @@ mail {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 993 ssl;
|
listen 993 ssl;
|
||||||
|
listen [::]:993 ssl;
|
||||||
protocol imap;
|
protocol imap;
|
||||||
imap_auth plain;
|
imap_auth plain;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user