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: class config_api:
__version = '0.10.0' __version = '0.10.0.1'
def __init__(self): def __init__(self):
pass pass

@ -1,6 +1,7 @@
server server
{ {
listen {$PORT}; listen {$PORT};
listen [::]:{$PORT};
server_name {$SERVER_NAME}; server_name {$SERVER_NAME};
index index.php index.html index.htm default.php default.htm default.html; index index.php index.html index.htm default.php default.htm default.html;
root {$ROOT_DIR}; root {$ROOT_DIR};

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

Loading…
Cancel
Save