反代imgur

admin
2022-01-28 / 0 评论 / 208 阅读 / 正在检测是否收录...
location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        #try_files $uri $uri/ =404;
         # Proxy
            proxy_pass https://i.imgur.com/;
            proxy_http_version 1.1;

        # Limitations
                client_max_body_size    1000m;
                proxy_read_timeout 300s;
                proxy_send_timeout 300s;

        # Headers
                proxy_set_header Referer "";
                proxy_set_header User-Agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36";
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                   proxy_set_header Upgrade "websocket";
                proxy_set_header Connection "Upgrade";
    }
0

评论 (0)

取消