mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
openresty 默认加入ipv6支持
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user