diff --git a/cluster/image/base/services/nginx.conf b/cluster/image/base/services/nginx.conf index c2a6b123..270d4e9d 100644 --- a/cluster/image/base/services/nginx.conf +++ b/cluster/image/base/services/nginx.conf @@ -25,6 +25,7 @@ http { include /etc/nginx/sites-enabled/*; server { + listen [::]:80; listen 80; location / { return 444; diff --git a/cluster/image/pro_seafile/templates/seafile.nginx.conf.template b/cluster/image/pro_seafile/templates/seafile.nginx.conf.template index cbbbf768..2c589576 100644 --- a/cluster/image/pro_seafile/templates/seafile.nginx.conf.template +++ b/cluster/image/pro_seafile/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; rewrite ^ https://{{ domain }}$request_uri? permanent; @@ -10,6 +11,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -23,6 +25,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%} diff --git a/cluster/image/pro_seafile_7.1/services/nginx.conf b/cluster/image/pro_seafile_7.1/services/nginx.conf index c2a6b123..270d4e9d 100644 --- a/cluster/image/pro_seafile_7.1/services/nginx.conf +++ b/cluster/image/pro_seafile_7.1/services/nginx.conf @@ -25,6 +25,7 @@ http { include /etc/nginx/sites-enabled/*; server { + listen [::]:80; listen 80; location / { return 444; diff --git a/cluster/image/pro_seafile_7.1/templates/seafile.nginx.conf.template b/cluster/image/pro_seafile_7.1/templates/seafile.nginx.conf.template index cbbbf768..2c589576 100644 --- a/cluster/image/pro_seafile_7.1/templates/seafile.nginx.conf.template +++ b/cluster/image/pro_seafile_7.1/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; rewrite ^ https://{{ domain }}$request_uri? permanent; @@ -10,6 +11,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -23,6 +25,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%} diff --git a/image/base/services/nginx.conf b/image/base/services/nginx.conf index 910766fe..fe6897a2 100644 --- a/image/base/services/nginx.conf +++ b/image/base/services/nginx.conf @@ -26,6 +26,7 @@ http { include /etc/nginx/sites-enabled/*; server { + listen [::]:80; listen 80; location / { return 444; diff --git a/image/pro_seafile/templates/seafile.nginx.conf.template b/image/pro_seafile/templates/seafile.nginx.conf.template index 0a210f45..655b58fd 100644 --- a/image/pro_seafile/templates/seafile.nginx.conf.template +++ b/image/pro_seafile/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; # allow certbot to connect to challenge location via HTTP Port 80 @@ -19,6 +20,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -32,6 +34,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%} diff --git a/image/pro_seafile_7.1/services/nginx.conf b/image/pro_seafile_7.1/services/nginx.conf index 910766fe..fe6897a2 100644 --- a/image/pro_seafile_7.1/services/nginx.conf +++ b/image/pro_seafile_7.1/services/nginx.conf @@ -26,6 +26,7 @@ http { include /etc/nginx/sites-enabled/*; server { + listen [::]:80; listen 80; location / { return 444; diff --git a/image/pro_seafile_7.1/templates/seafile.nginx.conf.template b/image/pro_seafile_7.1/templates/seafile.nginx.conf.template index a8d2617a..4ca20a34 100644 --- a/image/pro_seafile_7.1/templates/seafile.nginx.conf.template +++ b/image/pro_seafile_7.1/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; @@ -20,6 +21,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -33,6 +35,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%} diff --git a/image/pro_seafile_8.0/services/nginx.conf b/image/pro_seafile_8.0/services/nginx.conf index 910766fe..fe6897a2 100644 --- a/image/pro_seafile_8.0/services/nginx.conf +++ b/image/pro_seafile_8.0/services/nginx.conf @@ -26,6 +26,7 @@ http { include /etc/nginx/sites-enabled/*; server { + listen [::]:80; listen 80; location / { return 444; diff --git a/image/pro_seafile_8.0/templates/seafile.nginx.conf.template b/image/pro_seafile_8.0/templates/seafile.nginx.conf.template index a8d2617a..4ca20a34 100644 --- a/image/pro_seafile_8.0/templates/seafile.nginx.conf.template +++ b/image/pro_seafile_8.0/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; @@ -20,6 +21,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -33,6 +35,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%} diff --git a/image/seafile/templates/seafile.nginx.conf.template b/image/seafile/templates/seafile.nginx.conf.template index 8059ab50..9f94bb5d 100644 --- a/image/seafile/templates/seafile.nginx.conf.template +++ b/image/seafile/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; @@ -20,6 +21,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -33,6 +35,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%} diff --git a/image/seafile_7.1/services/nginx.conf b/image/seafile_7.1/services/nginx.conf index 910766fe..fe6897a2 100644 --- a/image/seafile_7.1/services/nginx.conf +++ b/image/seafile_7.1/services/nginx.conf @@ -26,6 +26,7 @@ http { include /etc/nginx/sites-enabled/*; server { + listen [::]:80; listen 80; location / { return 444; diff --git a/image/seafile_7.1/templates/seafile.nginx.conf.template b/image/seafile_7.1/templates/seafile.nginx.conf.template index a8d2617a..4ca20a34 100644 --- a/image/seafile_7.1/templates/seafile.nginx.conf.template +++ b/image/seafile_7.1/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; @@ -20,6 +21,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -33,6 +35,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%} diff --git a/image/seafile_8.0/services/nginx.conf b/image/seafile_8.0/services/nginx.conf index 910766fe..fe6897a2 100644 --- a/image/seafile_8.0/services/nginx.conf +++ b/image/seafile_8.0/services/nginx.conf @@ -26,6 +26,7 @@ http { include /etc/nginx/sites-enabled/*; server { + listen [::]:80; listen 80; location / { return 444; diff --git a/image/seafile_8.0/templates/seafile.nginx.conf.template b/image/seafile_8.0/templates/seafile.nginx.conf.template index a8d2617a..4ca20a34 100644 --- a/image/seafile_8.0/templates/seafile.nginx.conf.template +++ b/image/seafile_8.0/templates/seafile.nginx.conf.template @@ -2,6 +2,7 @@ # Auto generated at {{ current_timestr }} {% if https -%} server { + listen [::]:80; listen 80; server_name _ default_server; @@ -20,6 +21,7 @@ server { server { {% if https -%} + listen [::]:443; listen 443; ssl on; ssl_certificate /shared/ssl/{{ domain }}.crt; @@ -33,6 +35,7 @@ server { # ssl_session_cache shared:SSL:10m; # ssl_session_timeout 10m; {% else -%} + listen [::]:80; listen 80; {% endif -%}