- 移除冲突选项
pull/418/head
vndroid 2022-07-15 15:50:04 +08:00
parent a7eb0b351a
commit 22a689179f
No known key found for this signature in database
GPG Key ID: 7533E3CE2FF98E00
1 changed files with 0 additions and 2 deletions

View File

@ -99,7 +99,6 @@ http {
default_type "application/json";
auth_basic "Please enter your username and password";
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-Forwarded-For $proxy_add_x_forwarded_for;
content_by_lua_block {
@ -132,7 +131,6 @@ http {
default_type 'application/json';
auth_basic "Please enter your username and password";
auth_basic_user_file /etc/openresty/auth;
add_header Content-Type "text/plain; charset=utf-8";
content_by_lua_block {
file = io.open("/etc/openresty/allow.list","w+")
ngx.print('{"code":200,"status":"OK","server":"openresty","info":"IP list has been cleared."}')