mirror of https://github.com/wulabing/Xray_onekey
parent
a7eb0b351a
commit
22a689179f
|
@ -99,7 +99,6 @@ http {
|
||||||
default_type "application/json";
|
default_type "application/json";
|
||||||
auth_basic "Please enter your username and password";
|
auth_basic "Please enter your username and password";
|
||||||
auth_basic_user_file /etc/openresty/auth;
|
auth_basic_user_file /etc/openresty/auth;
|
||||||
add_header Content-Type "text/plain; charset=utf-8";
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
content_by_lua_block {
|
content_by_lua_block {
|
||||||
|
@ -132,7 +131,6 @@ http {
|
||||||
default_type 'application/json';
|
default_type 'application/json';
|
||||||
auth_basic "Please enter your username and password";
|
auth_basic "Please enter your username and password";
|
||||||
auth_basic_user_file /etc/openresty/auth;
|
auth_basic_user_file /etc/openresty/auth;
|
||||||
add_header Content-Type "text/plain; charset=utf-8";
|
|
||||||
content_by_lua_block {
|
content_by_lua_block {
|
||||||
file = io.open("/etc/openresty/allow.list","w+")
|
file = io.open("/etc/openresty/allow.list","w+")
|
||||||
ngx.print('{"code":200,"status":"OK","server":"openresty","info":"IP list has been cleared."}')
|
ngx.print('{"code":200,"status":"OK","server":"openresty","info":"IP list has been cleared."}')
|
||||||
|
|
Loading…
Reference in New Issue