Browse Source

增加节点切换功能

zjcqoo 6 years ago
parent
commit
5747ae7ff4
1 changed files with 5 additions and 2 deletions
  1. 5 2
      api.conf

+ 5 - 2
api.conf

@@ -7,6 +7,8 @@ if ($http_x_jsproxy) {
 proxy_set_header      x-jsproxy   1;
 proxy_set_header      Connection  $http_connection;
 
+set                   $_level     '';
+set                   $_switched  '';
 set                   $_url       '';
 set                   $_ver       '';
 set                   $_ref       '';
@@ -19,7 +21,7 @@ location = /preflight {
   more_set_headers
     'access-control-allow-origin: *'
     'access-control-allow-methods: GET,POST,PUT,PATCH,TRACE,DELETE,HEAD,OPTIONS'
-    'access-control-allow-headers: --url,--referer,--cookie,--origin,--ext,--aceh,--ver,--type,--mode,accept,accept-charset,accept-encoding,accept-language,accept-datetime,authorization,cache-control,content-length,content-type,date,if-match,if-modified-since,if-none-match,if-range,if-unmodified-since,max-forwards,pragma,range,te,upgrade,upgrade-insecure-requests,x-requested-with,chrome-proxy'
+    'access-control-allow-headers: --raw-info,--level,--url,--referer,--cookie,--origin,--ext,--aceh,--ver,--type,--mode,accept,accept-charset,accept-encoding,accept-language,accept-datetime,authorization,cache-control,content-length,content-type,date,if-match,if-modified-since,if-none-match,if-range,if-unmodified-since,max-forwards,pragma,range,te,upgrade,upgrade-insecure-requests,x-requested-with,chrome-proxy'
     'access-control-max-age: 1728000'
   ;
   return              204;
@@ -43,7 +45,8 @@ location = /http {
     'content-security-policy-report-only'
     'x-frame-options'
   ;
-  header_filter_by_lua_file  ../lua/http-enc-res-hdr.lua;
+  header_filter_by_lua_file   ../lua/http-enc-res-hdr.lua;
+  body_filter_by_lua_file     ../lua/http-body-hash.lua;
 }