跳至正文

Chatgpt我来了

nginx 反向代理chatgpt.com 失败了,差一步

    location / {
        resolver 8.8.8.8;
        proxy_pass https://chatgpt.com;
        proxy_set_header Host chatgpt.com;
        proxy_set_header X-Real-IP $http_x_forwarded_for;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header User-Agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36";
        proxy_ssl_server_name on;
        proxy_buffering off;
        proxy_redirect off;
        proxy_buffers 256 4k; 
        proxy_max_temp_file_size 0;
        proxy_connect_timeout 30; 
    }