changeset 1776:da85925fea9c

listen ipv6
author Vadim Filimonov <fffilimonov@yandex.ru>
date Fri, 28 Jul 2023 11:53:03 +0300
parents e380ab6c0c78
children e59349d53fec
files host/startup/nginx/nginx.conf.luan host/startup/nginx/nginx.ssl.conf.luan
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r e380ab6c0c78 -r da85925fea9c host/startup/nginx/nginx.conf.luan
--- a/host/startup/nginx/nginx.conf.luan	Thu Jul 27 17:52:52 2023 -0600
+++ b/host/startup/nginx/nginx.conf.luan	Fri Jul 28 11:53:03 2023 +0300
@@ -22,6 +22,7 @@
 
 	server {
 		listen 80 default_server;
+		listen [::]:80 default_server;
 		include nginx.default.conf;
 	}
 
diff -r e380ab6c0c78 -r da85925fea9c host/startup/nginx/nginx.ssl.conf.luan
--- a/host/startup/nginx/nginx.ssl.conf.luan	Thu Jul 27 17:52:52 2023 -0600
+++ b/host/startup/nginx/nginx.ssl.conf.luan	Fri Jul 28 11:53:03 2023 +0300
@@ -4,12 +4,14 @@
 	server {
 		server_name <%=domain%>;
 		listen 80;
+		listen [::]:80;
 		return 301 https://$http_host$request_uri;
 	}
 
 	server {
 		server_name <%=domain%>;
 		listen 443 ssl;
+		listen [::]:443 ssl;
 
 		if ($host != $server_name) {
 			return 301 http://$http_host$request_uri;