|
@@ -10,13 +10,16 @@ proxy_set_header Connection $http_connection;
|
|
set $_url '';
|
|
set $_url '';
|
|
set $_ver '';
|
|
set $_ver '';
|
|
set $_ref '';
|
|
set $_ref '';
|
|
|
|
+set $_type '';
|
|
|
|
+set $_mode '';
|
|
|
|
|
|
location = /preflight {
|
|
location = /preflight {
|
|
internal;
|
|
internal;
|
|
|
|
+ access_log off;
|
|
more_set_headers
|
|
more_set_headers
|
|
'access-control-allow-origin: *'
|
|
'access-control-allow-origin: *'
|
|
'access-control-allow-methods: GET,POST,PUT,PATCH,TRACE,DELETE,HEAD,OPTIONS'
|
|
'access-control-allow-methods: GET,POST,PUT,PATCH,TRACE,DELETE,HEAD,OPTIONS'
|
|
- 'access-control-allow-headers: --url,--referer,--cookie,--origin,--ext,--aceh,--ver,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: --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'
|
|
'access-control-max-age: 1728000'
|
|
;
|
|
;
|
|
return 204;
|
|
return 204;
|
|
@@ -52,6 +55,8 @@ location = /ws {
|
|
|
|
|
|
|
|
|
|
location = /traff {
|
|
location = /traff {
|
|
|
|
+ access_log off;
|
|
|
|
+
|
|
content_by_lua_block {
|
|
content_by_lua_block {
|
|
ngx.say(ngx.shared.traff:get('stat'))
|
|
ngx.say(ngx.shared.traff:get('stat'))
|
|
}
|
|
}
|