12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- server
- {
- listen 443;
- server_name api.ieasou.cn;
- ssl on;
- ssl_certificate /data/sslkey/ieasou.cn/api.ieasou.cn.pem;
- ssl_certificate_key /data/sslkey/ieasou.cn/api.ieasou.cn.key;
- ssl_session_timeout 5m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
- ssl_prefer_server_ciphers on;
- location /status {
- stub_status on;
- access_log off;
- }
- location / {
- if ($http_cookie ~* ".*uid=(.*?);.*$")
- {
- set $uid $1;
- }
- # if ($http_cookie ~* ".*wver=([a-z]{1,3}).*$") {
- # set $mid $1;
- # }
- if ($arg_version = "002")
- {
- gzip on;
- }
- if ($request_uri ~* "phonevcode.m") {
- set $udid Y;
- }
- if ($request_uri ~* "04DF3BD2E4ABC777178BF81D2A5A2C85|pushid=160a3797c86e80e490b") {
- set $udid "${udid}Y";
- }
- if ($remote_addr ~* "140.249.25.4|223.99.225.242"){
- set $udid "${udid}Y";
- }
- if ($udid = YY) {
- return 403;
- }
- if ($request_uri ~* "5DFB568E03AA473E935CB4938EEABFB0|09E26261CA0E83345A7C3FFA4BC9665B|1CD36DE4D4D16379AE34190257A6ACC9|HOq2T4rj5vzuTHw2V81BitalcA9Ut|C9C12A31E5CDE899F35CDF2AA45B03D5|09053442eef08741ed2fd376dc1a61581154bbef|04DF3BD2E4ABC777178BF81D2A5A2C85|CCA85FE110CABA44AC60DB21C17C73E6|58D69B86ACFBCB971EF7B4A743A3C09B|3E9A05076F42B5643E335B13490FC27B|7C420B097EBCD3B97A254AAB018B17CF|3EC834A7F048B3EE6DD4FA0D3C1351DA")
- {
- #rewrite ^/ http://223.99.225.200:81;
- return 403;
- }
- if ($http_user_agent ~* "QiDian|douban|cyhj|sjmz|ydsc|jmktcyw") {
- return 403;
- }
- proxy_pass http://api.ieasou.cn;
- proxy_redirect off ;
- proxy_http_version 1.1;
- proxy_set_header Connection "";
- proxy_set_header Host $host;
- proxy_set_header Referer $http_referer;
- proxy_set_header Cookie $http_cookie;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- client_max_body_size 60m;
- client_body_buffer_size 512k;
- proxy_connect_timeout 35s;
- proxy_send_timeout 35s;
- proxy_read_timeout 35s;
- proxy_buffer_size 512k;
- proxy_buffers 4 512k;
- proxy_busy_buffers_size 512k;
- proxy_temp_file_write_size 512k;
- proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_404;
- proxy_max_temp_file_size 128m;
- }
- }
|