菜单
本页目录

文件下载反代

proxy.mhdy.me 基于cf

pixiv反代

pixiv.mhdy.icu 源码:
主要是在请求中额外带上 https://pixiv.net 的请求头

proxy_cache_path /www/sites/pixiv.mhdy.icu/cache levels=1:2 keys_zone=pximg:10m max_size=10g inactive=7d use_temp_path=off; 
server {
    listen 80 ; 
    listen 443 ssl http2 ; 
    server_name pixiv.mhdy.icu; 
    index index.php index.html index.htm default.php default.htm default.html; 
    access_log /www/sites/pixiv.mhdy.icu/log/access.log main; 
    error_log /www/sites/pixiv.mhdy.icu/log/error.log; 
    ssl_certificate /www/sites/pixiv.mhdy.icu/ssl/fullchain.pem; 
    ssl_certificate_key /www/sites/pixiv.mhdy.icu/ssl/privkey.pem; 
    ssl_protocols TLSv1.3 TLSv1.2; 
    ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256; 
    ssl_prefer_server_ciphers on; 
    ssl_session_cache shared:SSL:10m; 
    ssl_session_timeout 10m; 
    add_header Strict-Transport-Security "max-age=31536000"; 
    location ^~ /.well-known/acme-challenge {
        allow all; 
        root /usr/share/nginx/html; 
    }
    location / {
        proxy_cache pximg; 
        proxy_pass https://i.pximg.net; 
        proxy_cache_revalidate on; 
        proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; 
        proxy_cache_lock on; 
        add_header X-Cache-Status $upstream_cache_status; 
        proxy_set_header Host i.pximg.net; 
        proxy_set_header Referer "https://www.pixiv.net/"; 
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
        proxy_set_header X-Forwarded-Proto https; 
        proxy_set_header X-Real-IP $remote_addr; 
        proxy_cache_valid 200 7d; 
        proxy_cache_valid 404 5m; 

    }
    error_page 497 https://$host$request_uri; 
    if ($scheme = http) {
        return 301 https://$host$request_uri; 
    }
}

github反代

github.mhdy.icu 源码: https://github.com/hunshcn/gh-proxy

docker反代

docker.mhdy.icu 源码: https://github.com/dqzboy/Docker-Proxy/blob/main/docker-compose.yaml