openresty 默认加入ipv6支持

pull/223/head
midoks 3 years ago
parent aacb816b11
commit 195ccf409e
  1. 2
      class/core/config_api.py
  2. 1
      data/tpl/nginx.conf
  3. 1
      plugins/openresty/conf/nginx.conf

@ -15,7 +15,7 @@ from flask import request
class config_api:
__version = '0.10.0'
__version = '0.10.0.1'
def __init__(self):
pass

@ -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};

@ -64,6 +64,7 @@ http
server {
listen 80;
listen [::]:80;
server_name 127.0.0.1;
allow 127.0.0.1;
location /nginx_status {

Loading…
Cancel
Save