这个api直接访问是404,我反代了之后也是,直接挂代理访问api是可以请求的。但是反代但是请求不了。请求也是返回404.
NGINX的额外配置:
proxy_ssl_server_name on;
proxy_set_header Host generativelanguage.googleapis.com;
proxy_set_header Connection '';
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;