- 更新: api/cdnjs/googleajax/googlefonts/gstatic/wpstatic 规则与生产同步 - 新增: downloads/ps/s/ts/web.wenpai.net + gh/jsd.admincdn.com + translate/wpmirror.com + wpphoto + litepress.cn - 删除: 旧命名文件(wordpress-*.conf/gravatar.conf/proxy.conf),统一用生产域名命名 - README: 完整文件清单、域名映射表、使用说明
34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
# Gravatar
|
|
location = /robots.txt {
|
|
add_header Content-Type text/plain;
|
|
return 200 "User-agent: *\nDisallow: /\n";
|
|
}
|
|
|
|
location ~ ^/.*/.*$ {
|
|
proxy_pass https://192.0.73.2;
|
|
proxy_hide_header Access-Control-Allow-Origin;
|
|
proxy_hide_header Strict-Transport-Security;
|
|
proxy_hide_header Cache-Control;
|
|
proxy_set_header Host s.gravatar.com;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
|
proxy_set_header Accept-Encoding "";
|
|
proxy_http_version 1.1;
|
|
proxy_ssl_protocols TLSv1.2 TLSv1.3;
|
|
proxy_ssl_session_reuse off;
|
|
proxy_ssl_server_name on;
|
|
proxy_ssl_name s.gravatar.com;
|
|
resolver 8.8.8.8 ipv6=off;
|
|
resolver_timeout 10s;
|
|
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
|
|
proxy_cache cache_one;
|
|
proxy_cache_key $scheme$host$uri$is_args$args;
|
|
proxy_cache_valid 200 304 301 302 404 7d;
|
|
proxy_cache_lock on;
|
|
proxy_cache_lock_timeout 5s;
|
|
proxy_cache_lock_age 5s;
|
|
proxy_cache_background_update on;
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
proxy_cache_revalidate on;
|
|
}
|