From 195ccf409ef86dac2cd9f51dd23de80f126cd94d Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 27 Oct 2022 14:38:44 +0800 Subject: [PATCH] =?UTF-8?q?openresty=20=E9=BB=98=E8=AE=A4=E5=8A=A0?= =?UTF-8?q?=E5=85=A5ipv6=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/core/config_api.py | 2 +- data/tpl/nginx.conf | 1 + plugins/openresty/conf/nginx.conf | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/class/core/config_api.py b/class/core/config_api.py index 947208a24..72821da45 100755 --- a/class/core/config_api.py +++ b/class/core/config_api.py @@ -15,7 +15,7 @@ from flask import request class config_api: - __version = '0.10.0' + __version = '0.10.0.1' def __init__(self): pass diff --git a/data/tpl/nginx.conf b/data/tpl/nginx.conf index ab258fc46..94f96ad2b 100755 --- a/data/tpl/nginx.conf +++ b/data/tpl/nginx.conf @@ -1,6 +1,7 @@ server { listen {$PORT}; + listen [::]:{$PORT}; server_name {$SERVER_NAME}; index index.php index.html index.htm default.php default.htm default.html; root {$ROOT_DIR}; diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 71f6f569b..a08233d44 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -64,6 +64,7 @@ http server { listen 80; + listen [::]:80; server_name 127.0.0.1; allow 127.0.0.1; location /nginx_status {