Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change nginx configs to also listen for ipv6 requests #264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cluster/image/base/services/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ http {
include /etc/nginx/sites-enabled/*;

server {
listen [::]:80;
listen 80;
location / {
return 444;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -10,6 +11,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -23,6 +25,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down
1 change: 1 addition & 0 deletions cluster/image/pro_seafile_7.1/services/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ http {
include /etc/nginx/sites-enabled/*;

server {
listen [::]:80;
listen 80;
location / {
return 444;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -10,6 +11,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -23,6 +25,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down
1 change: 1 addition & 0 deletions image/base/services/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ http {
include /etc/nginx/sites-enabled/*;

server {
listen [::]:80;
listen 80;
location / {
return 444;
Expand Down
3 changes: 3 additions & 0 deletions image/pro_seafile/templates/seafile.nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,6 +20,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -32,6 +34,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down
1 change: 1 addition & 0 deletions image/pro_seafile_7.1/services/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ http {
include /etc/nginx/sites-enabled/*;

server {
listen [::]:80;
listen 80;
location / {
return 444;
Expand Down
3 changes: 3 additions & 0 deletions image/pro_seafile_7.1/templates/seafile.nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Auto generated at {{ current_timestr }}
{% if https -%}
server {
listen [::]:80;
listen 80;
server_name _ default_server;

Expand All @@ -20,6 +21,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -33,6 +35,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down
1 change: 1 addition & 0 deletions image/pro_seafile_8.0/services/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ http {
include /etc/nginx/sites-enabled/*;

server {
listen [::]:80;
listen 80;
location / {
return 444;
Expand Down
3 changes: 3 additions & 0 deletions image/pro_seafile_8.0/templates/seafile.nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Auto generated at {{ current_timestr }}
{% if https -%}
server {
listen [::]:80;
listen 80;
server_name _ default_server;

Expand All @@ -20,6 +21,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -33,6 +35,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down
3 changes: 3 additions & 0 deletions image/seafile/templates/seafile.nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Auto generated at {{ current_timestr }}
{% if https -%}
server {
listen [::]:80;
listen 80;
server_name _ default_server;

Expand All @@ -20,6 +21,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -33,6 +35,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down
1 change: 1 addition & 0 deletions image/seafile_7.1/services/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ http {
include /etc/nginx/sites-enabled/*;

server {
listen [::]:80;
listen 80;
location / {
return 444;
Expand Down
3 changes: 3 additions & 0 deletions image/seafile_7.1/templates/seafile.nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Auto generated at {{ current_timestr }}
{% if https -%}
server {
listen [::]:80;
listen 80;
server_name _ default_server;

Expand All @@ -20,6 +21,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -33,6 +35,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down
1 change: 1 addition & 0 deletions image/seafile_8.0/services/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ http {
include /etc/nginx/sites-enabled/*;

server {
listen [::]:80;
listen 80;
location / {
return 444;
Expand Down
3 changes: 3 additions & 0 deletions image/seafile_8.0/templates/seafile.nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Auto generated at {{ current_timestr }}
{% if https -%}
server {
listen [::]:80;
listen 80;
server_name _ default_server;

Expand All @@ -20,6 +21,7 @@ server {

server {
{% if https -%}
listen [::]:443;
listen 443;
ssl on;
ssl_certificate /shared/ssl/{{ domain }}.crt;
Expand All @@ -33,6 +35,7 @@ server {
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
{% else -%}
listen [::]:80;
listen 80;
{% endif -%}

Expand Down